add -i (Perl version): color header to match the C version
commit0cb8939fb6795c9f94f9184935b6a83aebdfc47a
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 16 Nov 2020 16:08:30 +0000 (16 16:08 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 16 Nov 2020 23:59:02 +0000 (16 15:59 -0800)
tree5e55e4a83284bb33fd9f35dcd5344b4f85d81766
parentafae3cb6b036e8fb218e5699c8ad3c18b6d4b992
add -i (Perl version): color header to match the C version

Both versions of `add -i` indent non-flat lists by five spaces. However
when using color the C version prints these spaces after the ANSI color
codes whereas the Perl version prints them before the color codes.
Change the Perl version to match the C version to allow for introducing
a test that verifies that both versions produce the exact same output.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-add--interactive.perl