Skip to content

Commit 0bc2cdd

Browse files
sunshinecogitster
authored andcommitted
line-range-format.txt: document -L/RE/ relative search
Option -L/RE/ of blame/log now searches relative to the previous -L range, if any. Document this. Signed-off-by: Eric Sunshine <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3e0d79d commit 0bc2cdd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Documentation/line-range-format.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ absolute line number (lines count from 1).
99
- /regex/
1010
+
1111
This form will use the first line matching the given
12-
POSIX regex. If <end> is a regex, it will search
12+
POSIX regex. If <start> is a regex, it will search from the end of
13+
the previous `-L` range, if any, otherwise from the start of file.
14+
If <end> is a regex, it will search
1315
starting at the line given by <start>.
1416
+
1517

0 commit comments

Comments
 (0)