Re: [PATCHv2 0/3] Make diff plumbing commands respect the indentHeuristic.
- From
Junio C Hamano <gitster@pobox.com>
- Date
- May 1, 2017, 01:11 UTC
- Message-ID
- <xmqqlgqhjs8b.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <20170429131439.ohgren3i7xr4tjex@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 10 quoted lines
> diff --git a/t/t4051-diff-function-context.sh b/t/t4051-diff-function-context.sh > index 6154acb45..5f46c0341 100755 > --- a/t/t4051-diff-function-context.sh > +++ b/t/t4051-diff-function-context.sh > @@ -72,7 +72,7 @@ test_expect_success 'setup' ' > > # overlap function context of 1st change and -u context of 2nd change > grep -v "delete me from hello" <"$dir/hello.c" >file.c && > - sed 2p <"$dir/dummy.c" >>file.c && > + sed "2aextra line" <"$dir/dummy.c" >>file.c &&
I've never used 'a' (or 'i') command of sed without having it immediately followed by a backslash-newline in my scripts. How portable is this addition, I have to wonder. Can BSD folks give it a quick test?
Thanks.