git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Bug report: --invert-grep and --author seems to be incompatible.

From
Jehan Pagès <jehan.marmottard@gmail.com>
Date
Jul 13, 2016, 16:52 UTC
Message-ID
<CAFgjPJ-E0k8KQjdcRki4Qr1tPjwfJVtuFWOKYV-+f6POgb-=wg@mail.gmail.com>
Hello,
> $ git version
> git version 2.5.5
Tested on a Fedora 23.

You can combine `git log --author=someone --grep=something` to have all commits by "someone" where "something" can be grepped. If I want all commits by someone where "something" is not grepped, I would expect this command to return it:

> git log --author=someone --invert-grep --grep=something

But it does not work. Actually it looks like it just returns everything (as though I had done a simple `git log`). So there seems to be a problem here. Thanks!

Jehan
-- 
ZeMarmot open animation film
http://film.zemarmot.net
Patreon: https://patreon.com/zemarmot
Tipeee: https://www.tipeee.com/zemarmot
Next: Junio C Hamano
Message 1 of 6 in “Bug report: --invert-grep and --author seems to be incompatible.”
  1. Jehan PagèsJul 13, 2016
  2. Junio C HamanoJul 13, 2016
  3. Jehan PagèsJul 13, 2016
  4. Junio C HamanoJul 13, 2016
  5. Jehan PagèsJul 13, 2016
  6. Junio C HamanoJul 13, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.