From: Jakub Narębski Date: Wed, 05 Oct 2016 14:23:45 GMT Subject: Re: [PATCH 16/18] count-objects: report alternates via verbose mode Message-ID: In-Reply-To: <20161003203618.m6kxd3b6h74jbmqz@sigill.intra.peff.net> W dniu 03.10.2016 o 22:36, Jeff King pisze: > +test_expect_success 'count-objects shows the alternates' ' > + cat >expect <<-EOF && > + alternate: $(pwd)/B/.git/objects > + alternate: $(pwd)/A/.git/objects > + EOF > + git -C C count-objects -v >actual && > + grep ^alternate: actual >actual.alternates && > + test_cmp expect actual.alternates > +' This was bit hard to grok for me without quotes around regular expression in grep (should it be sane_grep, BTW?): + grep "^alternate:" actual >actual.alternates && But it might be just me... It's certainly not necessary. -- Jakub Narębski