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 78c8533 commit 67430a8Copy full SHA for 67430a8
lib/git/lib.rb
@@ -549,6 +549,18 @@ def remove(path = '.', opts = {})
549
command('rm', arr_opts)
550
end
551
552
+ # Takes the commit message with the options and executes the commit command
553
+ #
554
+ # accepts options:
555
+ # :amend
556
+ # :all
557
+ # :allow_empty
558
+ # :author
559
+ # :date
560
+ # :no_verify
561
562
+ # @param [String] message the commit message to be used
563
+ # @param [Array] opts the commit options to be used
564
def commit(message, opts = {})
565
arr_opts = []
566
arr_opts << "--message=#{message}" if message
0 commit comments