Re: [PATCH 16/18] count-objects: report alternates via verbose mode
- From
Jakub Narębski <jnareb@gmail.com>
- Date
- Oct 5, 2016, 14:23 UTC
- Message-ID
- <f664a03d-838c-4062-c31b-5bd8fe7f2328@gmail.com>
- In-Reply-To
- <20161003203618.m6kxd3b6h74jbmqz@sigill.intra.peff.net>
W dniu 03.10.2016 o 22:36, Jeff King pisze:
Show 9 quoted lines
> +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