git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* teach git diff -v/--invert-match?
@ 2008-08-22 14:51 Brian Ericson
  2008-08-22 19:39 ` Jeff King
  0 siblings, 1 reply; 7+ messages in thread
From: Brian Ericson @ 2008-08-22 14:51 UTC (permalink / raw)
  To: git

I'm wondering what it would take to teach git diff to invert the -S 
string (like git grep).

I'm finding git diff -S<string> [--pickaxe-regex] to be really useful, 
but find I have cases where I want to ignore differences.  For example, 
I might not care if the only changes to a Java file, for example, are 
related to import statements.  I'd like to be able to do something like 
"git diff -S'^import' --pickaxe-regex -v".  I'll admit I can get by with 
something like "git diff -S'^[^i]' --pickaxe-regex", but am pining for 
-v/--invert-match.

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

end of thread, other threads:[~2008-08-27  0:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-22 14:51 teach git diff -v/--invert-match? Brian Ericson
2008-08-22 19:39 ` Jeff King
2008-08-22 21:29   ` Brian Ericson
2008-08-22 21:42     ` Jeff King
2008-08-22 21:44       ` Junio C Hamano
2008-08-25  9:41   ` Paolo Bonzini
2008-08-27  0:38     ` Jeff King

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 NNTP newsgroup(s).