Skip to content

Commit 121866c

Browse files
Supporting force => true on add. closes ruby-git#6
1 parent fc83722 commit 121866c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/git/lib.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,13 +365,15 @@ def global_config_set(name, value)
365365
#
366366
# options:
367367
# :all => true
368+
# :force => true
368369
#
369370
# @param [String,Array] paths files paths to be added to the repository
370371
# @param [Hash] options
371372
def add(paths='.',options={})
372373
arr_opts = []
373374

374375
arr_opts << '--all' if options[:all]
376+
arr_opts << '--force' if options[:force]
375377

376378
arr_opts << '--'
377379

0 commit comments

Comments
 (0)