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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jeff King
Date: Friday, August 22, 2008 - 2:42 pm

On Fri, Aug 22, 2008 at 04:29:31PM -0500, Brian Ericson wrote:


Yes (though I couldn't have told you that without experimenting -- I
always assumed it checked whole lines).


That is a bit harder, and AFAIK not possible with -S. You could always
post process the log output. E.g.,:

  git log -p | perl -ne '
    BEGIN { $/ = "commit " }
    chomp; print if /^\+import /
  '

which lets you get quite fancy with the matching.


The usual question (for me, anyway) is "when did X get introduced?" when
looking for a token.

-Peff
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
teach git diff -v/--invert-match?, Brian Ericson, (Fri Aug 22, 7:51 am)
Re: teach git diff -v/--invert-match?, Jeff King, (Fri Aug 22, 12:39 pm)
Re: teach git diff -v/--invert-match?, Brian Ericson, (Fri Aug 22, 2:29 pm)
Re: teach git diff -v/--invert-match?, Jeff King, (Fri Aug 22, 2:42 pm)
Re: teach git diff -v/--invert-match?, Junio C Hamano, (Fri Aug 22, 2:44 pm)
Re: teach git diff -v/--invert-match?, Paolo Bonzini, (Mon Aug 25, 2:41 am)
Re: teach git diff -v/--invert-match?, Jeff King, (Tue Aug 26, 5:38 pm)