]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t8008-blame-formats.sh
blame: add --line-porcelain output format
[thirdparty/git.git] / t / t8008-blame-formats.sh
index 387d1a6b9877409b9166644993c963334ca3498c..d15f8b3d473416eaed24ed92396d567aa785c3d8 100755 (executable)
@@ -68,4 +68,23 @@ test_expect_success 'blame --porcelain output' '
        test_cmp expect actual
 '
 
+cat >expect <<EOF
+$ID1 1 1 1
+$COMMIT1
+       a
+$ID2 2 2 3
+$COMMIT2
+       b
+$ID2 3 3
+$COMMIT2
+       c
+$ID2 4 4
+$COMMIT2
+       d
+EOF
+test_expect_success 'blame --line-porcelain output' '
+       git blame --line-porcelain file >actual &&
+       test_cmp expect actual
+'
+
 test_done