Skip to content

Commit 7c1f79f

Browse files
avargitster
authored andcommitted
pretty format %(trailers) test: split a long line
Split a very long line in a test introduced in 0b691d8 (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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3a0b884 commit 7c1f79f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

t/t4205-log-pretty-formats.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,12 @@ test_expect_success '%(trailers:key=foo,valueonly) shows only value' '
717717

718718
test_expect_success 'pretty format %(trailers:separator) changes separator' '
719719
git log --no-walk --pretty=format:"X%(trailers:separator=%x00,unfold)X" >actual &&
720-
printf "XSigned-off-by: A U Thor <[email protected]>\0Acked-by: A U Thor <[email protected]>\0[ v2 updated patch description ]\0Signed-off-by: A U Thor <[email protected]>X" >expect &&
720+
(
721+
printf "XSigned-off-by: A U Thor <[email protected]>\0" &&
722+
printf "Acked-by: A U Thor <[email protected]>\0" &&
723+
printf "[ v2 updated patch description ]\0" &&
724+
printf "Signed-off-by: A U Thor <[email protected]>X"
725+
) >expect &&
721726
test_cmp expect actual
722727
'
723728

0 commit comments

Comments
 (0)