diff-highlight: prefer "echo" to "cat" in tests
authorJeff King <peff@peff.net>
Wed, 21 Mar 2018 05:48:53 +0000 (01:48 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 21 Mar 2018 17:24:19 +0000 (10:24 -0700)
commite28ae5072f633d77c65817db7b3aeb07d531a8d9
tree62486310126b9da5258428343176b350bd6e6526
parent53ab9f0e3d0ff2bb5803059da3526ef6eda8ce65
diff-highlight: prefer "echo" to "cat" in tests

We generate a bunch of one-line files whose contents match
their names, and then generate our commits by cat-ing those
files. Let's just echo the contents directly, which saves
some processes.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/diff-highlight/t/t9400-diff-highlight.sh