Michael J Gruber <g...@drmicha.warpmail.net> writes:
> From: Junio C Hamano <gits...@pobox.com>
> Our "grep" allows complex boolean expressions to be formed to match
> each individual line with operators like --and, '(', ')' and --not.
> Introduce the "--debug" option to show the parse tree to help people
> who want to debug and enhance it.
> Also "log" learns "--debug-grep" option to do the same. The command
This was actually a leftover incorrect message.
When we introduce the equivalent of
$ git grep -e foo --and --not \( -e bar -e baz \)
to the log family in some distant future, we may end up having to
disambiguate the "--not" (which means something completely different
for the log family) meant for the grep part by doing
$ git log --grep=foo --grep-and --grep-not \
--grep-\( --grep=bar --grep=baz --grep-\)
or something like that, and the code says --grep-debug because that
would fit better than --debug-grep.
Other than that, the patch looks good ;-)
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html