From e1f68c66d575e09f325f3eda9ced1b2f4ef4b4f0 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Thu, 17 Aug 2017 18:38:51 -0700 Subject: git-grep: correct exit code with --quiet and -L The handling of `status_only` no longer interferes with the handling of `unmatch_name_only`. `--quiet` no longer affects the exit code when using `-L`/`--files-without-match`. Signed-off-by: Anthony Sottile Signed-off-by: Junio C Hamano --- t/t7810-grep.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 't') diff --git a/t/t7810-grep.sh b/t/t7810-grep.sh index cee42097b0..7395038f7e 100755 --- a/t/t7810-grep.sh +++ b/t/t7810-grep.sh @@ -370,6 +370,11 @@ test_expect_success 'grep -L -C' ' test_cmp expected actual ' +test_expect_success 'grep --files-without-match --quiet' ' + git grep --files-without-match --quiet nonexistent_string >actual && + test_cmp /dev/null actual +' + cat >expected <