Interpret :/<pattern> as a regular expression
commit38318318502e77df284db6113b741c1d7ba5b43e
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 13 Jun 2007 00:45:22 +0000 (13 01:45 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Sun, 7 Feb 2010 19:19:29 +0000 (7 20:19 +0100)
tree7890f522d1afeca082d4b972bd92de851dc32338
parent586f59d95e691b2410968d0440b7bb6f5460e849
Interpret :/<pattern> as a regular expression

Earlier, Git interpreted the pattern as a strict prefix, which made
the operator unsuited in many cases.

Now, the pattern is interpreted as a regular expression, on the whole
message, so that you can say

git diff :/.*^Signed-off-by:.Zack.Brown

to see the diff against the most recent reachable commit which was
signed off by Zack, whose Kernel Cousin I miss very much.

If you want to match just the oneline, but with a regular expression,
say something like

git diff ':/[^
]*intelligent'

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Documentation/git-rev-parse.txt
sha1_name.c