summaryrefslogtreecommitdiff
path: root/Documentation/line-range-format.txt
diff options
context:
space:
mode:
authorPhilippe Blain <levraiphilippeblain@gmail.com>2020-11-01 17:28:43 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-11-01 23:54:14 (GMT)
commit0cce88f1e4b0ccbdc804db8b522aeb11b0f2b199 (patch)
tree6970a2c8908dbb743639805ca19024763ba07795 /Documentation/line-range-format.txt
parenta4514a46d9c85278ae4a350442dd4a160ff1f3cf (diff)
downloadgit-0cce88f1e4b0ccbdc804db8b522aeb11b0f2b199.zip
git-0cce88f1e4b0ccbdc804db8b522aeb11b0f2b199.tar.gz
git-0cce88f1e4b0ccbdc804db8b522aeb11b0f2b199.tar.bz2
doc: add more pointers to gitattributes(5) for userdiff
Several Git commands can make use of the builtin userdiff patterns, but it's not obvious in the documentation. Add pointers to the 'Defining a custom hunk header' part of gitattributes(5) in the description of the following options: - the '--function-context' option of `git diff` and friends - the '--function-context' option of `git grep` - the '-L :<funcname>' option of `git log`, `gitk` and `git blame` In 'git-grep.txt', take the opportunity to use backticks in the description of '--show-function', and improve the wording of the desription of '--function-context'. Signed-off-by: Philippe Blain <levraiphilippeblain@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/line-range-format.txt')
-rw-r--r--Documentation/line-range-format.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/Documentation/line-range-format.txt b/Documentation/line-range-format.txt
index 43759ee..9b51e9f 100644
--- a/Documentation/line-range-format.txt
+++ b/Documentation/line-range-format.txt
@@ -27,4 +27,6 @@ regular expression that denotes the range from the first funcname line
that matches '<funcname>', up to the next funcname line. `:<funcname>`
searches from the end of the previous `-L` range, if any, otherwise
from the start of file. `^:<funcname>` searches from the start of
-file.
+file. The function names are determined in the same way as `git diff`
+works out patch hunk headers (see 'Defining a custom hunk-header'
+in linkgit:gitattributes[5]).