Thread (3 messages) flat view 3 messages, 2 authors, 2016-06-15

Re: [PATCH] fix "git log -i --grep"

From: Jeff King <hidden>
Date: 2016-06-15 22:45:13

Possibly related (same subject, not in this thread)

On Mon, Aug 25, 2008 at 02:15:05AM -0400, Jeff King wrote:
quoted
As you suggested, making the grep option structure embedded in rev_info
may not be a bad idea.  We used to keep track of the sub-options
separately while we encounter, and updated grep_filter at the end of the
loop, but the conversion to use parse-options broke it.
I worked up this patch, and it is below. However, I think it may not be
a good idea, because...
Actually, let me amend that. While writing the email, I came to the
conclusion that the "complain if -i but not --grep" is probably not a
good idea. So in that case, I think this patch (allocating grep_filter
inside the struct) _is_ a good idea.

But I don't feel too strongly either way.  If you disagree, we can go
with the first one, and I can resend it (with the cleanup I mentioned)
and I can do the trivial complaining patch on top of it.

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help