line-range: teach -L^/RE/ to search from start of file
commita6ac5f9864958f65269d8d58a049324403b039fd
authorEric Sunshine <sunshine@sunshineco.com>
Tue, 6 Aug 2013 13:59:45 +0000 (6 09:59 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 6 Aug 2013 21:47:04 +0000 (6 14:47 -0700)
tree5ed8209b561686b7424f9d683072ff34be66236a
parent0bc2cdd5507ea4acad06c6d872245e4a3fd2a4b6
line-range: teach -L^/RE/ to search from start of file

The -L/RE/ option of blame/log searches from the end of the previous -L
range, if any. Add new notation -L^/RE/ to override this behavior and
search from start of file.

The new ^/RE/ syntax is valid only as the <start> argument of
-L<start>,<end>. The <end> argument, as usual, is relative to <start>.

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/line-range-format.txt
line-range.c
t/annotate-tests.sh