All of lore.kernel.org
 help / color / mirror / Atom feed
From: Brian Ericson <bme@visi.com>
To: git@vger.kernel.org
Subject: teach git diff -v/--invert-match?
Date: Fri, 22 Aug 2008 09:51:16 -0500	[thread overview]
Message-ID: <48AED264.60600@visi.com> (raw)

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.

             reply	other threads:[~2008-08-22 15:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-22 14:51 Brian Ericson [this message]
2008-08-22 19:39 ` teach git diff -v/--invert-match? 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48AED264.60600@visi.com \
    --to=bme@visi.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.