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 93ea661 commit 36fb3cdCopy full SHA for 36fb3cd
lib/git/base.rb
@@ -256,6 +256,7 @@ def reset_hard(commitish = nil, opts = {})
256
# options:
257
# :add_all
258
# :allow_empty
259
+ # :author
260
def commit(message, opts = {})
261
self.lib.commit(message, opts)
262
end
lib/git/lib.rb
@@ -372,6 +372,7 @@ def commit(message, opts = {})
372
arr_opts = ["-m '#{message}'"]
373
arr_opts << '-a' if opts[:add_all]
374
arr_opts << '--allow-empty' if opts[:allow_empty]
375
+ arr_opts << "--author '#{opts[:author]}'" if opts[:author]
376
command('commit', arr_opts)
377
378
0 commit comments