git-grep: correct exit code with --quiet and -L
authorAnthony Sottile <asottile@umich.edu>
Fri, 18 Aug 2017 01:38:51 +0000 (18:38 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 18 Aug 2017 02:02:23 +0000 (19:02 -0700)
commite1f68c66d575e09f325f3eda9ced1b2f4ef4b4f0
tree4b267159f350ad35be2a068509f4da11d04c799f
parent3d9c5b5c4461957fbbc0479e037990db04ebb740
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 <asottile@umich.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
grep.c
t/t7810-grep.sh