Skip to content

Commit 1668f1f

Browse files
committed
added support for git rm --cached
1 parent 14738bb commit 1668f1f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/git/lib.rb

Lines changed: 1 addition & 0 deletions
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)