X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft6006-rev-list-format.sh;h=aab17face8c0b326359c250bb83684ed3b894160;hb=95655d79ad13697e0d68e986d3b0b402efad007a;hp=ce9c7dc6ebfc4092055e29d358e0b2d5d2e16c9b;hpb=542e165cdc4fbebbfe7c8954ca1aa1d4162e38cb;p=git.git diff --git a/t/t6006-rev-list-format.sh b/t/t6006-rev-list-format.sh index ce9c7dc6e..aab17face 100755 --- a/t/t6006-rev-list-format.sh +++ b/t/t6006-rev-list-format.sh @@ -105,4 +105,46 @@ commit 86c75cfd708a0e5868dc876ed5b8bb66c80b4873 foobarbazxyzzy EOF +cat >commit-msg <<'EOF' +Test printing of complex bodies + +This commit message is much longer than the others, +and it will be encoded in iso8859-1. We should therefore +include an iso8859 character: ¡bueno! +EOF +test_expect_success 'setup complex body' ' +git-config i18n.commitencoding iso8859-1 && + echo change2 >foo && git-commit -a -F commit-msg +' + +test_format complex-encoding %e <<'EOF' +commit f58db70b055c5718631e5c61528b28b12090cdea +iso8859-1 +commit 131a310eb913d107dd3c09a65d1651175898735d + +commit 86c75cfd708a0e5868dc876ed5b8bb66c80b4873 + +EOF + +test_format complex-subject %s <<'EOF' +commit f58db70b055c5718631e5c61528b28b12090cdea +Test printing of complex bodies +commit 131a310eb913d107dd3c09a65d1651175898735d +changed foo +commit 86c75cfd708a0e5868dc876ed5b8bb66c80b4873 +added foo +EOF + +test_format complex-body %b <<'EOF' +commit f58db70b055c5718631e5c61528b28b12090cdea +This commit message is much longer than the others, +and it will be encoded in iso8859-1. We should therefore +include an iso8859 character: ¡bueno! + +commit 131a310eb913d107dd3c09a65d1651175898735d + +commit 86c75cfd708a0e5868dc876ed5b8bb66c80b4873 + +EOF + test_done