Re: [PATCH v1 11/19] t1700: add tests for splitIndex.maxPercentChange
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 1, 2016, 19:15 UTC
- Message-ID
- <xmqqd1ifovtf.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <20161023092648.12086-12-chriscool@tuxfamily.org>
Christian Couder <christian.couder@gmail.com> writes:
Show 24 quoted lines
> Signed-off-by: Christian Couder <chriscool@tuxfamily.org> > --- > t/t1700-split-index.sh | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 72 insertions(+) > > diff --git a/t/t1700-split-index.sh b/t/t1700-split-index.sh > index 507a1dd..f03addf 100755 > --- a/t/t1700-split-index.sh > +++ b/t/t1700-split-index.sh > @@ -238,4 +238,76 @@ EOF > test_cmp expect actual > ' > > +test_expect_success 'set core.splitIndex config variable to true' ' > + git config core.splitIndex true && > + : >three && > + git update-index --add three && > + BASE=$(test-dump-split-index .git/index | grep "^base") && > + test-dump-split-index .git/index | sed "/^own/d" >actual && > + cat >expect <<EOF && > +$BASE > +replacements: > +deletions: > +EOF
Using <<-EOF lets us indent the above four lines with a horizontal tab to align with the remainder of this test_expect_success block, so let's do that.