]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t4205-log-pretty-formats.sh
pretty: add %D format specifier
[thirdparty/git.git] / t / t4205-log-pretty-formats.sh
index 349c531989326eacfe1e1448bfed740d7fd4bd8e..e6015e2684ebf7ed1bdb3dad1a43b8309248ef3b 100755 (executable)
@@ -450,4 +450,15 @@ EOF
        test_cmp expected actual1
 '
 
+test_expect_success 'clean log decoration' '
+       git log --no-walk --tags --pretty="%H %D" --decorate=full >actual &&
+       cat >expected <<EOF &&
+$head1 tag: refs/tags/tag2
+$head2 tag: refs/tags/message-one
+$old_head1 tag: refs/tags/message-two
+EOF
+       sort actual >actual1 &&
+       test_cmp expected actual1
+'
+
 test_done