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

Re: teach git diff -v/--invert-match?

From
Paolo Bonzini <bonzini@gnu.org>
Date
Aug 25, 2008, 09:41 UTC
Message-ID
<48B27E51.2020709@gnu.org>
In-Reply-To
<20080822193947.GA31322@coredump.intra.peff.net>
> I would have thought "-v" meant "match any changes which do not have
> this pattern". But you want "match any changes that have any line which
> does not have this pattern."

Yours could be "-L/--without-match" (in grep, -L/--files-without-match only prints the names of files containing no match).

Paolo
Previous: Junio C HamanoNext: Jeff King
Message 6 of 7 in “teach git diff -v/--invert-match?”
  1. Brian EricsonAug 22, 2008
  2. Jeff KingAug 22, 2008
  3. Brian EricsonAug 22, 2008
  4. Jeff KingAug 22, 2008
  5. Junio C HamanoAug 22, 2008
  6. Paolo BonziniAug 25, 2008
  7. Jeff KingAug 27, 2008

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.