Skip to content

Commit 67430a8

Browse files
committed
Add yard doc for changes in #commit
1 parent 78c8533 commit 67430a8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

lib/git/lib.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,18 @@ def remove(path = '.', opts = {})
549549
command('rm', arr_opts)
550550
end
551551

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
552564
def commit(message, opts = {})
553565
arr_opts = []
554566
arr_opts << "--message=#{message}" if message

0 commit comments

Comments
 (0)