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 89ba125 commit 93ea661Copy full SHA for 93ea661
lib/git/base.rb
@@ -252,6 +252,10 @@ def reset_hard(commitish = nil, opts = {})
252
end
253
254
# commits all pending changes in the index file to the git repository
255
+ #
256
+ # options:
257
+ # :add_all
258
+ # :allow_empty
259
def commit(message, opts = {})
260
self.lib.commit(message, opts)
261
lib/git/lib.rb
@@ -371,6 +371,7 @@ def remove(path = '.', opts = {})
371
372
arr_opts = ["-m '#{message}'"]
373
arr_opts << '-a' if opts[:add_all]
374
+ arr_opts << '--allow-empty' if opts[:allow_empty]
375
command('commit', arr_opts)
376
377
0 commit comments