]> git.ipfire.org Git - thirdparty/git.git/commitdiff
doc: interpret-trailers: use input redirection
authorKristoffer Haugsbakk <code@khaugsbakk.name>
Mon, 1 May 2023 20:02:39 +0000 (22:02 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 May 2023 20:26:41 +0000 (13:26 -0700)
Use input redirection instead of invoking cat(1) on a single file. This
is more straightforward, saves a process, and often makes the line
shorter.

Suggested-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Kristoffer Haugsbakk <code@khaugsbakk.name>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-interpret-trailers.txt

index 4f4eb7a7fc9a600ff33283604e8a841e2edc1180..4ff8be7f2e7d7e30e5a08df82690f421c83f82d5 100644 (file)
@@ -280,7 +280,7 @@ $ cat msg.txt
 subject
 
 message
-$ cat msg.txt | git interpret-trailers --trailer 'sign: Alice <alice@example.com>' --trailer 'sign: Bob <bob@example.com>'
+$ git interpret-trailers --trailer 'sign: Alice <alice@example.com>' --trailer 'sign: Bob <bob@example.com>' <msg.txt
 subject
 
 message