summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>2009-07-01 22:07:24 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-07-02 02:16:50 (GMT)
commit60ecac98ed6f420c6bf823491074219087c749d4 (patch)
tree480471031679f5d7f88dea0c673412f1ce03890b /Documentation
parent2944e4e6145bdfcb1a8730d7da671786d72c86ed (diff)
downloadgit-60ecac98ed6f420c6bf823491074219087c749d4.zip
git-60ecac98ed6f420c6bf823491074219087c749d4.tar.gz
git-60ecac98ed6f420c6bf823491074219087c749d4.tar.bz2
grep -p: support user defined regular expressions
Respect the userdiff attributes and config settings when looking for lines with function definitions in git grep -p. Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/git-grep.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/git-grep.txt b/Documentation/git-grep.txt
index b3bb283..b753c9d 100644
--- a/Documentation/git-grep.txt
+++ b/Documentation/git-grep.txt
@@ -126,6 +126,9 @@ OPTIONS
--show-function::
Show the preceding line that contains the function name of
the match, unless the matching line is a function name itself.
+ The name is determined in the same way as 'git diff' works out
+ patch hunk headers (see 'Defining a custom hunk-header' in
+ linkgit:gitattributes[5]).
-f <file>::
Read patterns from <file>, one per line.