From: Torsten Bögershausen Date: Thu, 20 Oct 2016 06:51:39 GMT Subject: Re: [PATCH] rev-list: restore the NUL commit separator in --header mode Message-ID: <39b98123-f2c6-a09a-8ab4-5c246ffe4623@web.de> In-Reply-To: <20161019210448.aupphybw5qar6mqe@hurricane> diff --git a/t/t6000-rev-list-misc.sh b/t/t6000-rev-list-misc.sh > index 3e752ce..a2acff3 100755 > --- a/t/t6000-rev-list-misc.sh > +++ b/t/t6000-rev-list-misc.sh > @@ -100,4 +100,11 @@ test_expect_success '--bisect and --first-parent can not be combined' ' > test_must_fail git rev-list --bisect --first-parent HEAD > ' > > +test_expect_success '--header shows a NUL after each commit' ' > + touch expect && > + printf "\0" > expect && Micronit: No ' ' after '>' (And why do we need the touch ?) + printf "\0" >expect && > + git rev-list --header --max-count=1 HEAD | tail -n1 >actual && > + test_cmp_bin expect actual > +' > + > test_done