We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2fd4af commit 0865cfbCopy full SHA for 0865cfb
lib/git/lib.rb
@@ -642,6 +642,7 @@ def remove(path = '.', opts = {})
642
# :date
643
# :no_verify
644
# :allow_empty_message
645
+ # :sign
646
#
647
# @param [String] message the commit message to be used
648
# @param [Hash] opts the commit options to be used
@@ -655,6 +656,7 @@ def commit(message, opts = {})
655
656
arr_opts << "--date=#{opts[:date]}" if opts[:date].is_a? String
657
arr_opts << '--no-verify' if opts[:no_verify]
658
arr_opts << '--allow-empty-message' if opts[:allow_empty_message]
659
+ arr_opts << "--gpg-sign=#{opts[:sign]}" if opts[:sign] || "--gpg-sign" if opts[:sign]=''
660
661
command('commit', arr_opts)
662
end
0 commit comments