Files
git/Documentation
Bo Yang 25ed3412f8 Refactor parse_loc
We want to use the same style of -L n,m argument for 'git log -L' as
for git-blame.  Refactor the argument parsing of the range arguments
from builtin/blame.c to the (new) file that will hold the 'git log -L'
logic.

To accommodate different data structures in blame and log -L, the file
contents are abstracted away; parse_range_arg takes a callback that it
uses to get the contents of a line of the (notional) file.

The new test is for a case that made me pause during debugging: the
'blame -L with invalid end' test was the only one that noticed an
outright failure to parse the end *at all*.  So make a more explicit
test for that.

Signed-off-by: Bo Yang <struggleyb.nku@gmail.com>
Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2013-03-28 10:28:41 -07:00
..
2013-02-05 16:13:32 -08:00
2013-02-27 10:10:28 -08:00
2013-03-28 10:28:41 -07:00
2013-02-14 10:28:55 -08:00
2013-02-25 08:28:06 -08:00
2012-04-20 15:49:16 -07:00
2013-02-14 10:29:01 -08:00
2012-06-19 11:35:19 -07:00
2013-02-05 16:13:32 -08:00
2011-09-06 11:42:12 -07:00
2011-03-11 10:59:16 -05:00
2013-02-27 10:10:28 -08:00
2013-02-27 09:47:28 -08:00
2013-03-28 10:28:41 -07:00
2013-02-07 14:42:16 -08:00
2013-02-07 14:41:45 -08:00