]> git.ipfire.org Git - thirdparty/git.git/commit - line-range.c
blame: reject empty ranges -L,+0 and -L,-0
authorEric Sunshine <sunshine@sunshineco.com>
Wed, 31 Jul 2013 08:15:45 +0000 (04:15 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 5 Aug 2013 18:54:32 +0000 (11:54 -0700)
commit5d57cac6ae7c661d430dcc7dd2e44c994bf797be
tree96f4ff8a5bbeba74d42a5ec4619782acedfd82f0
parent82cd7e5d3e56c173769bc5fba91e0c6415e208f0
blame: reject empty ranges -L,+0 and -L,-0

Empty ranges -L,+0 and -L,-0 are nonsensical in the context of blame yet
they are accepted (in fact, both are interpreted as -L1,Y where Y is
end-of-file). 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