line-range: reject -L line numbers less than 1
commit5ce922a014f78684a96c3d03a51decf0d21fa58d
authorEric Sunshine <sunshine@sunshineco.com>
Tue, 6 Aug 2013 13:59:49 +0000 (6 09:59 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 6 Aug 2013 21:48:55 +0000 (6 14:48 -0700)
tree51a30c2cf9e291ff7ca739b1e19cd28d0bc67b7b
parent9527604f7d6490fd4ce0809fe8fc8a600e03710d
line-range: reject -L line numbers less than 1

Since inception, git-blame -L has been documented as accepting 1-based
line numbers. When handed a line number less than 1, -L's behavior is
undocumented and undefined; it's also nonsensical and should be
diagnosed as an error. Do so.

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