]> git.ipfire.org Git - thirdparty/git.git/commit - line-log.c
log: teach -L/RE/ to search from end of previous -L range
authorEric Sunshine <sunshine@sunshineco.com>
Tue, 6 Aug 2013 13:59:43 +0000 (09:59 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 6 Aug 2013 21:46:12 +0000 (14:46 -0700)
commit3e0d79dbe3064cf065b6518520dd1489406200a9
tree4894504d7bc5b7cc727943170fb3eb9b75c20e53
parent52f4d1264854485bfd50afeeed1933a3f9e05c96
log: teach -L/RE/ to search from end of previous -L range

This is complicated slightly by having to remember the previous -L range
for each file specified via -L<range>:file.

The existing implementation coalesces ranges for each file as each -L is
parsed which makes it impossible to refer back to the previous -L range
for any particular file. Re-implement to instead store each file's set
of -L ranges verbatim, and then coalesce the ranges in a post-processing
step.

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
line-log.c