git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Inconsistent exit code for `git grep --files-without-match` with `--quiet`
@ 2017-08-15 16:00 Anthony Sottile
  0 siblings, 0 replies; 2+ messages in thread
From: Anthony Sottile @ 2017-08-15 16:00 UTC (permalink / raw
  To: Git Mailing List

Using the latest revision of git:

$ ./git --version
git version 2.14.GIT

$ ./git-grep --files-without-match nope -- blob.c; echo $?
blob.c
0

$ ./git-grep --files-without-match --quiet nope -- blob.c; echo $?
1

I expect both to exit 0

Note that blob.c does not contain "nope", here is the revision I am
using: https://github.com/git/git/blob/b3622a4ee94e4916cd05e6d96e41eeb36b941182/blob.c
-- this file / case isn't special I just picked a reproduction that
may be convenient for git developers.

Anthony

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Inconsistent exit code for `git grep --files-without-match` with `--quiet`
@ 2017-08-17 21:29 Paul Eggert
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Eggert @ 2017-08-17 21:29 UTC (permalink / raw
  To: git; +Cc: Anthony Sottile

Anthony reported this issue to bug-grep@gnu.org. From what I can see, 
git-grep's behavior is better, so I changed GNU grep to behave like 
git-grep. Please see:

https://debbugs.gnu.org/28105

I hope this saves you folks a little bit of work.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-08-17 21:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-15 16:00 Inconsistent exit code for `git grep --files-without-match` with `--quiet` Anthony Sottile
  -- strict thread matches above, loose matches on Subject: below --
2017-08-17 21:29 Paul Eggert

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).