]> git.ipfire.org Git - thirdparty/git.git/commit
doc: avoid redundant use of cat
authorBeat Bolli <bb@drbeat.li>
Fri, 15 Mar 2024 19:45:58 +0000 (20:45 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 16 Mar 2024 18:08:55 +0000 (11:08 -0700)
commit938e891a9aa6626a948bb507f2f6b215be5bb6a3
tree9bc666838c92f8b5c66d122ff5ab0000880d3b19
parent2953d95d402b6bff1a59c4712f4d46f1b9ea137f
doc: avoid redundant use of cat

The update-hook-example.txt script uses this anti-pattern twice. Call grep
with the input file name directy. While at it, merge the two consecutive
grep calls.

Signed-off-by: Beat Bolli <dev+git@drbeat.li>
Acked-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/howto/update-hook-example.txt