t8001/t8002: blame: add empty file & partial-line tests
commita8fa8eca3f38ab89ad116575d0a5c47cdd03a7e9
authorEric Sunshine <sunshine@sunshineco.com>
Wed, 31 Jul 2013 08:15:37 +0000 (31 04:15 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 5 Aug 2013 18:54:31 +0000 (5 11:54 -0700)
treec5a97c394626139fa9e2852a3439012aeb785609
parent580b4f3acf076f5f3346206d3c54912ffc663d86
t8001/t8002: blame: add empty file & partial-line tests

Add boundary case tests, with and without -L, for empty file; file with
one partial line; file with one full line.

The empty file test without -L is of particular interest. Historically,
this case has been supported (empty blame output) and this test protects
against regression by a subsequent patch fixing an off-by-one bug which
incorrectly accepts -LX where X is one past end-of-file.

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