Re: [PATCHv2 0/3] Make diff plumbing commands respect the indentHeuristic.
- From
Junio C Hamano <gitster@pobox.com>
- Date
- May 1, 2017, 23:25 UTC
- Message-ID
- <xmqq60hkgnwq.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <20170501051528.tpw3zlcpercdwdln@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 7 quoted lines
> PS Outside of our test scripts, I'd probably just have written: > > perl -lpe 'print "extra line" if $. == 2' > > I think we have traditionally preferred sed/awk to perl, but given > the heavy use of vanilla perl elsewhere in the test suite, I think > that is maybe just superstition at this point.
I would have avoided sed with 'a', 'i' and 'c' in one-liners myself, and a Perl script like the above would probably have been my choice.