Skip to content

Commit 9d963a3

Browse files
Merge branch 'master' of https://github.com/bakku/ruby-git into bakku-master
2 parents 1feb6eb + 1668f1f commit 9d963a3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/git/lib.rb

+1
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,7 @@ def add(paths='.',options={})
519519
def remove(path = '.', opts = {})
520520
arr_opts = ['-f'] # overrides the up-to-date check by default
521521
arr_opts << ['-r'] if opts[:recursive]
522+
arr_opts << ['--cached'] if opts[:cached]
522523
arr_opts << '--'
523524
if path.is_a?(Array)
524525
arr_opts += path

0 commit comments

Comments
 (0)