summaryrefslogtreecommitdiffstats
path: root/git-grep.txt
diff options
context:
space:
mode:
authorJunio C Hamano <junio@hera.kernel.org>2009-07-09 16:49:19 +0000
committerJunio C Hamano <junio@hera.kernel.org>2009-07-09 16:49:19 +0000
commit48bc1ce61affeee2942cc1290ea0aab6b6e61f91 (patch)
treed367ba3c8814d61891baaf5bf40480ef4e55da3e /git-grep.txt
parentccc4d37316e8b357ae23130491c5c8b255a4924b (diff)
downloadgit-htmldocs-48bc1ce61affeee2942cc1290ea0aab6b6e61f91.tar.gz
Autogenerated HTML docs for v1.6.3.3-444-g4ecbc
Diffstat (limited to 'git-grep.txt')
-rw-r--r--git-grep.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/git-grep.txt b/git-grep.txt
index fccb82deb..b753c9d76 100644
--- a/git-grep.txt
+++ b/git-grep.txt
@@ -122,6 +122,14 @@ OPTIONS
-<num>::
A shortcut for specifying -C<num>.
+-p::
+--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.