]> git.ipfire.org Git - thirdparty/git.git/commit - t/t1006-cat-file.sh
t1006: extract --batch-command inputs to variables
authorTaylor Blau <me@ttaylorr.com>
Fri, 22 Jul 2022 23:29:02 +0000 (19:29 -0400)
committerJunio C Hamano <gitster@pobox.com>
Sat, 23 Jul 2022 04:42:05 +0000 (21:42 -0700)
commit3639fefe7d1d7bf881ea6128cedc4fc503164edc
tree4c03edb5d3b31a031f2e92db2ab1fb7dcc8be388
parent6a475b71f8c4ce708d69fdc9317aefbde3769e25
t1006: extract --batch-command inputs to variables

A future commit will want to ensure that various `--batch`-related
options produce the same output whether their input is newline
terminated, or NUL terminated (and a to-be-implemented `-z` option
exists).

To prepare for this, extract the given input(s) into separate variables
to that their LF characters can easily be converted into NUL bytes when
testing the new `-z` mode.

This is consistent with other tests in t1006 (which these days is no
longer a shining example of our CodingGuidelines).

Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1006-cat-file.sh