diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2020-12-06 00:24:45 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-12-07 18:23:11 (GMT) |
commit | 7c1f79fc16115cc971de571e4203ca78984352a7 (patch) | |
tree | e0758f5c102118ddf958bbdd431c7d7b0cf606f0 /t/t4205-log-pretty-formats.sh | |
parent | 3a0b884caba2752da0af626fb2de7d597c844e8b (diff) | |
download | git-7c1f79fc16115cc971de571e4203ca78984352a7.zip git-7c1f79fc16115cc971de571e4203ca78984352a7.tar.gz git-7c1f79fc16115cc971de571e4203ca78984352a7.tar.bz2 |
pretty format %(trailers) test: split a long line
Split a very long line in a test introduced in 0b691d86851 (pretty:
add support for separator option in %(trailers), 2019-01-28). This
makes it easier to read, especially as follow-up commits will copy
this test as a template.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4205-log-pretty-formats.sh')
-rwxr-xr-x | t/t4205-log-pretty-formats.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/t/t4205-log-pretty-formats.sh b/t/t4205-log-pretty-formats.sh index 204c149..5e54522 100755 --- a/t/t4205-log-pretty-formats.sh +++ b/t/t4205-log-pretty-formats.sh @@ -717,7 +717,12 @@ test_expect_success '%(trailers:key=foo,valueonly) shows only value' ' test_expect_success 'pretty format %(trailers:separator) changes separator' ' git log --no-walk --pretty=format:"X%(trailers:separator=%x00,unfold)X" >actual && - printf "XSigned-off-by: A U Thor <author@example.com>\0Acked-by: A U Thor <author@example.com>\0[ v2 updated patch description ]\0Signed-off-by: A U Thor <author@example.com>X" >expect && + ( + printf "XSigned-off-by: A U Thor <author@example.com>\0" && + printf "Acked-by: A U Thor <author@example.com>\0" && + printf "[ v2 updated patch description ]\0" && + printf "Signed-off-by: A U Thor <author@example.com>X" + ) >expect && test_cmp expect actual ' |