t7003: ensure --prune-empty can prune root commit
commit377a3543898815dda82e0b33de152958318e7bff
authorDevin J. Pohly <djpohly@gmail.com>
Thu, 23 Feb 2017 08:27:33 +0000 (23 02:27 -0600)
committerJunio C Hamano <gitster@pobox.com>
Fri, 3 Mar 2017 20:43:37 +0000 (3 12:43 -0800)
tree4499d04b6ba57cbe52bc1dafc87fbc4451ab1cd5
parent3b9e3c2cede15057af3ff8076c45ad5f33829436
t7003: ensure --prune-empty can prune root commit

New test to expose a bug in filter-branch whereby the root commit is
never pruned, even though its tree is empty and --prune-empty is given.

The setup isn't exactly pretty, but I couldn't think of a simpler way to
create a parallel commit graph sans the first commit.

Signed-off-by: Devin J. Pohly <djpohly@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7003-filter-branch.sh