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 765df7c commit 0cef8acCopy full SHA for 0cef8ac
lib/git/lib.rb
@@ -646,6 +646,7 @@ def remove(path = '.', opts = {})
646
# :date
647
# :no_verify
648
# :allow_empty_message
649
+ # :gpg_sign
650
#
651
# @param [String] message the commit message to be used
652
# @param [Hash] opts the commit options to be used
@@ -659,6 +660,7 @@ def commit(message, opts = {})
659
660
arr_opts << "--date=#{opts[:date]}" if opts[:date].is_a? String
661
arr_opts << '--no-verify' if opts[:no_verify]
662
arr_opts << '--allow-empty-message' if opts[:allow_empty_message]
663
+ arr_opts << '--gpg-sign' if opts[:gpg_sign] == true || "--gpg-sign=#{opts[:gpg_sign]}" if opts[:gpg_sign]
664
665
command('commit', arr_opts)
666
end
0 commit comments