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