aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/line-range-format.txt
diff options
context:
space:
mode:
authorMatthieu Moy <Matthieu.Moy@imag.fr>2015-04-20 14:09:06 +0200
committerJunio C Hamano <gitster@pobox.com>2015-04-20 11:05:50 -0700
commitd349e0ee60e1bad1cf49245e402ca086ddb5ff80 (patch)
treeb6efb7dfe74c7177beeb6623de202b3609e7f5ab /Documentation/line-range-format.txt
parent52735a689270bb1de94eb3de198594b36caed9bb (diff)
downloadgit-d349e0ee60e1bad1cf49245e402ca086ddb5ff80.tar.gz
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>
Diffstat (limited to 'Documentation/line-range-format.txt')
-rw-r--r--Documentation/line-range-format.txt11
1 files changed, 6 insertions, 5 deletions
diff --git a/Documentation/line-range-format.txt b/Documentation/line-range-format.txt
index d7f26039ca..829676ff98 100644
--- a/Documentation/line-range-format.txt
+++ b/Documentation/line-range-format.txt
@@ -22,8 +22,9 @@ This is only valid for <end> and will specify a number
of lines before or after the line given by <start>.
+
-If ``:<regex>'' is given in place of <start> and <end>, it denotes the range
-from the first funcname line that matches <regex>, up to the next
-funcname line. ``:<regex>'' searches from the end of the previous `-L` range,
-if any, otherwise from the start of file.
-``^:<regex>'' searches from the start of file.
+If ``:<funcname>'' is given in place of <start> and <end>, it is a
+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.