Thanks to visit codestin.com Credit goes to github.com
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.
2 parents 1feb6eb + 1668f1f commit 9d963a3Copy full SHA for 9d963a3
lib/git/lib.rb
@@ -519,6 +519,7 @@ def add(paths='.',options={})
519
def remove(path = '.', opts = {})
520
arr_opts = ['-f'] # overrides the up-to-date check by default
521
arr_opts << ['-r'] if opts[:recursive]
522
+ arr_opts << ['--cached'] if opts[:cached]
523
arr_opts << '--'
524
if path.is_a?(Array)
525
arr_opts += path
0 commit comments