t1300: add a few more hairy examples of sections becoming empty
commit422e8ef26d35a7e54d5b7b990669f4a525cb8828
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 9 Apr 2018 08:31:57 +0000 (9 10:31 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 9 Apr 2018 12:32:58 +0000 (9 21:32 +0900)
treec075dfc253f9546269fe76d22f9446f5bb68136b
parentdde154b5bd84e6258b496498901eb24b4914ec6b
t1300: add a few more hairy examples of sections becoming empty

During the review of the first iteration of the patch series to remove
sections that become empty upon --unset or --unset-all, Jeff King
identified a couple of problematic cases with the backtracking approach
that was still used then to "look backwards for the section header":
https://public-inbox.org/git/20180329213229.GG2939@sigill.intra.peff.net/

This patch adds a couple of concocted examples designed to fool a
backtracking parser.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1300-config.sh