blame: reject empty ranges -LX,+0 and -LX,-0
commitabba35395f859600cca1c04f1eab633963a8646e
authorEric Sunshine <sunshine@sunshineco.com>
Wed, 31 Jul 2013 08:15:43 +0000 (31 04:15 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 5 Aug 2013 18:54:32 +0000 (5 11:54 -0700)
tree2baa03bfc8546e443a98702cf9c57831bc46f95c
parentdedb9129d472671c608c7adab5bc5e773e651336
blame: reject empty ranges -LX,+0 and -LX,-0

Empty ranges -LX,+0 and -LX,-0 are nonsensical in the context of blame
yet they are accepted (in fact, both are interpreted as -LX,+2).  Report
them as invalid.

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