3 # Copyright (c) 2006 Carl D. Worth
6 test_description='Test of the various options to git-rm.'
10 # Setup some files to be removed
15 git update-index --add -- -q
16 git-commit -m "add foo, bar, and -q"
19 'Pre-check that foo is in index before git-rm foo' \
20 'git-ls-files --error-unmatch foo'
23 'Test that git-rm foo succeeds' \
27 'Post-check that foo is not in index after git-rm foo' \
28 'git-ls-files --error-unmatch foo'
31 'Test that "git-rm -f bar" works' \
35 'Post-check that bar no longer exists' \
39 'Test that "git-rm -- -q" works to delete a file named -q' \