From: Junio C Hamano <gitster@pobox.com>
To: Jeff King <peff@peff.net>
Cc: Brian Ericson <bme@visi.com>, git@vger.kernel.org
Subject: Re: teach git diff -v/--invert-match?
Date: Fri, 22 Aug 2008 14:44:34 -0700 [thread overview]
Message-ID: <7vmyj47mil.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <20080822214208.GA4498@coredump.intra.peff.net> (Jeff King's message of "Fri, 22 Aug 2008 17:42:08 -0400")
Jeff King <peff@peff.net> writes:
> On Fri, Aug 22, 2008 at 04:29:31PM -0500, Brian Ericson wrote:
>
>> I was just working on a reply to my own email as I realized it was
>> only dumb-luck that converted 1200 noisy changes into a couple of
>> dozen. "-S" matches only the string itself, not the line the string
>> resides on. So, -Sxyz will match if "xyz" itself was added or
>> deleted in the diff (if "xyz" is on a line that's changed but did not
>> itself change, it won't match). Funny that I actually knew this -- I
>> use it to look for System.out.println additions among other things.
>
> Yes (though I couldn't have told you that without experimenting -- I
> always assumed it checked whole lines).
The -Sstring counts the number of 'string' in preimage and postimage and
skips the commit if they are the same. Nothing more.
next prev parent reply other threads:[~2008-08-22 21:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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=7vmyj47mil.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=bme@visi.com \
--cc=git@vger.kernel.org \
--cc=peff@peff.net \
/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 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).