Re: [PATCH v3 2/4] doc: interpret-trailers: use input redirection
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 12, 2023, 21:16 UTC
- Message-ID
- <xmqqjzyg7qdw.fsf@gitster.g>
- In-Reply-To
- <12f7b10462184cbac884859e91d7b45e021041ee.1681326818.git.code@khaugsbakk.name>
Kristoffer Haugsbakk <code@khaugsbakk.name> writes:
> Suggested-by: Junio C Hamano <gitster@pobox.com> > Signed-off-by: Kristoffer Haugsbakk <code@khaugsbakk.name> > ---
Perhaps explain why it is a good idea in the body of the message?
Instead of "cat"ting a single file into a pipe, redirect from
the file to the standard input of the command on the downstream
side of the pipe. This is more straight-forward, saves one
extra process, and often makes the line shorter.or something like that.