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>
Ævar Arnfjörð Bjarmason committed
Dec 6, 2020 at 01:24 UTC
7c1f79fc16115cc971de571e4203ca78984352a7
1 file changed
+6
-1
t/t4205-log-pretty-formats.sh
+6
-1
@@ -717,7 +717,12 @@ test_expect_success '%(trailers:key=foo,valueonly) shows only value' '
717
718
test_expect_success 'pretty format %(trailers:separator) changes separator' '
719
git log --no-walk --pretty=format:"X%(trailers:separator=%x00,unfold)X" >actual &&
720
- 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 &&
720
+ (
721
+ printf "XSigned-off-by: A U Thor <author@example.com>\0" &&
722
+ printf "Acked-by: A U Thor <author@example.com>\0" &&
723
+ printf "[ v2 updated patch description ]\0" &&
724
+ printf "Signed-off-by: A U Thor <author@example.com>X"
725
+ ) >expect &&
726
test_cmp expect actual
727
'
728