Documentation: change -L:<regex> to -L:<funcname>

The old wording was somehow implying that <start> and <end> were not regular expressions. Also, the common case is to use a plain function name here so <funcname> makes sense (the fact that it is a regular expression is documented in line-range-format.txt). Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Matthieu Moy committed Apr 20, 2015 at 14:09 UTC d349e0ee60e1bad1cf49245e402ca086ddb5ff80
4 files changed +11 -10
Documentation/blame-options.txt
+1 -1
@@ -10,7 +10,7 @@
10 Include additional statistics at the end of blame output.
11
12 -L <start>,<end>::
13 --L :<regex>::
13 +-L :<funcname>::
14 Annotate only the given line range. May be specified multiple times.
15 Overlapping ranges are allowed.
16 +
Documentation/git-log.txt
+2 -2
@@ -62,9 +62,9 @@ produced by `--stat`, etc.
62 output by allowing them to allocate space in advance.
63
64 -L <start>,<end>:<file>::
65 --L :<regex>:<file>::
65 +-L :<funcname>:<file>::
66 Trace the evolution of the line range given by "<start>,<end>"
67 - (or the funcname regex <regex>) within the <file>. You may
67 + (or the function name regex <funcname>) within the <file>. You may
68 not give any pathspec limiters. This is currently limited to
69 a walk starting from a single revision, i.e., you may only
70 give zero or one positive revision arguments.
Documentation/gitk.txt
+2 -2
@@ -99,10 +99,10 @@ linkgit:git-rev-list[1] for a complete list.
99 detailed explanation.)
100
101 -L<start>,<end>:<file>::
102 --L:<regex>:<file>::
102 +-L:<funcname>:<file>::
103
104 Trace the evolution of the line range given by "<start>,<end>"
105 - (or the funcname regex <regex>) within the <file>. You may
105 + (or the function name regex <funcname>) within the <file>. You may
106 not give any pathspec limiters. This is currently limited to
107 a walk starting from a single revision, i.e., you may only
108 give zero or one positive revision arguments.
Documentation/line-range-format.txt
+6 -5
@@ -22,8 +22,9 @@ This is only valid for <end> and will specify a number
22 of lines before or after the line given by <start>.
23
24 +
25 -If ``:<regex>'' is given in place of <start> and <end>, it denotes the range
26 -from the first funcname line that matches <regex>, up to the next
27 -funcname line. ``:<regex>'' searches from the end of the previous `-L` range,
28 -if any, otherwise from the start of file.
29 -``^:<regex>'' searches from the start of file.
25 +If ``:<funcname>'' is given in place of <start> and <end>, it is a
26 +regular expression that denotes the range from the first funcname line
27 +that matches <funcname>, up to the next funcname line. ``:<funcname>''
28 +searches from the end of the previous `-L` range, if any, otherwise
29 +from the start of file. ``^:<funcname>'' searches from the start of
30 +file.