Re: [PATCH] t5318: avoid unnecessary command substitutions
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 13, 2018, 19:05 UTC
- Message-ID
- <xmqqa7pq5bpn.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <20180813003010.17610-1-szeder.dev@gmail.com>
SZEDER Gábor <szeder.dev@gmail.com> writes:
Show 6 quoted lines
> - echo $(git -C repo log --pretty="%ct" -1) \
> - $(git -C repo rev-parse one) >expect &&
> + {
> + git -C repo log --pretty=format:"%ct " -1 &&
> + git -C repo rev-parse one
> + } >expect &&Heh, "format:"%ct " to make the first one end with an incomplete line? Neat trick.