From bb1faf0d5bc53b193bbe25e7425458c8eb85efa3 Mon Sep 17 00:00:00 2001 From: Steven Grimm Date: Mon, 16 Apr 2007 00:53:24 -0700 Subject: Add --ignore-unmatch option to exit with zero status when no files are removed. Signed-off-by: Steven Grimm Signed-off-by: Junio C Hamano --- t/t3600-rm.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 't/t3600-rm.sh') diff --git a/t/t3600-rm.sh b/t/t3600-rm.sh index da9da92180..0a97b75288 100755 --- a/t/t3600-rm.sh +++ b/t/t3600-rm.sh @@ -84,6 +84,10 @@ test_expect_success \ 'When the rm in "git-rm -f" fails, it should not remove the file from the index' \ 'git-ls-files --error-unmatch baz' +test_expect_success 'Remove nonexistent file with --ignore-unmatch' ' + git rm --ignore-unmatch nonexistent +' + test_expect_success '"rm" command printed' ' echo frotz > test-file && git add test-file && -- cgit v1.2.3