Re: [PATCH] git log: avoid segfault with --all-match
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 18, 2009, 18:33 UTC
- Message-ID
- <7vbpryfzpb.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <1237399576-27323-1-git-send-email-barra_cuda@katamail.com>
Michele Ballabio <barra_cuda@katamail.com> writes:
Show 11 quoted lines
> Avoid a segfault when the command > > git log --all-match > > was issued. > > Signed-off-by: Michele Ballabio <barra_cuda@katamail.com> > --- > > Not sure if this is the right fix, nor if it would be better a > warning or an error.
I think ignoring it makes sense; you could alias "git log --all-match" to something like "git lg", and when no grepping option appears it will still work.
I'd add s/was issued./was issued, by ignoring the option/; or something like that, though.