From 1ce761a524e34f2d629759cb57c67d13acbe4a7a Mon Sep 17 00:00:00 2001 From: Eric Sunshine Date: Tue, 6 Aug 2013 09:59:46 -0400 Subject: 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 Signed-off-by: Junio C Hamano --- Documentation/line-range-format.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Documentation') diff --git a/Documentation/line-range-format.txt b/Documentation/line-range-format.txt index cf84417060..469d80b242 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 . + If ``:'' is given in place of and , it denotes the range from the first funcname line that matches , up to the next -funcname line. +funcname line. ``:'' searches from the end of the previous `-L` range, +if any, otherwise from the start of file. -- cgit v1.2.3