summaryrefslogtreecommitdiff
path: root/Documentation/line-range-format.txt
diff options
context:
space:
mode:
authorEric Sunshine <sunshine@sunshineco.com>2013-08-06 13:59:46 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-08-06 21:47:34 (GMT)
commit1ce761a524e34f2d629759cb57c67d13acbe4a7a (patch)
tree6743d31c57b24481ff251a26ba56ec6eda935d60 /Documentation/line-range-format.txt
parenta6ac5f9864958f65269d8d58a049324403b039fd (diff)
downloadgit-1ce761a524e34f2d629759cb57c67d13acbe4a7a.zip
git-1ce761a524e34f2d629759cb57c67d13acbe4a7a.tar.gz
git-1ce761a524e34f2d629759cb57c67d13acbe4a7a.tar.bz2
line-range: teach -L:RE to search from end of previous -L range
For consistency with -L/RE/, teach -L:RE to search relative to the end of the previous -L range, if any. The new behavior invalidates one test in t4211 which assumes that -L:RE begins searching at start of file. This test will be resurrected in a follow-up patch which teaches -L:RE how to override the default relative search behavior. Signed-off-by: Eric Sunshine <sunshine@sunshineco.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.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/line-range-format.txt b/Documentation/line-range-format.txt
index cf84417..469d80b 100644
--- a/Documentation/line-range-format.txt
+++ b/Documentation/line-range-format.txt
@@ -24,4 +24,5 @@ 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.
+funcname line. ``:<regex>'' searches from the end of the previous `-L` range,
+if any, otherwise from the start of file.