grep: add option to show whole function as context
[gitweb.git] / Documentation / git-grep.txt
index 07b3c6a0866c5b4ff0b4653b462b332ea0d348c9..6cd0c503f63c2e2ffe49ef5ffc7e64677ae721cd 100644 (file)
@@ -172,6 +172,12 @@ OPTIONS
        patch hunk headers (see 'Defining a custom hunk-header' in
        linkgit:gitattributes[5]).
 
+-W::
+       Show the surrounding text from the previous line containing a
+       function name up to the one before the next function name,
+       effectively showing the whole function in which the match was
+       found.
+
 -f <file>::
        Read patterns from <file>, one per line.