3 test_description
='blame output in various formats on a simple case'
6 test_expect_success
'setup' '
19 ^baf5e0b (A U Thor 2005-04-07 15:13:13 -0700 1) a
20 8825379d (A U Thor 2005-04-07 15:14:13 -0700 2) b
21 8825379d (A U Thor 2005-04-07 15:14:13 -0700 3) c
22 8825379d (A U Thor 2005-04-07 15:14:13 -0700 4) d
24 test_expect_success
'normal blame output' '
25 git blame file >actual &&
26 test_cmp expect actual
29 ID1
=baf5e0b3869e0b2b2beb395a3720c7b51eac94fc
30 COMMIT1
='author A U Thor
31 author-mail <author@example.com>
32 author-time 1112911993
35 committer-mail <committer@example.com>
36 committer-time 1112911993
41 ID2
=8825379dfb8a1267b58e8e5bcf69eec838f685ec
42 COMMIT2
='author A U Thor
43 author-mail <author@example.com>
44 author-time 1112912053
47 committer-mail <committer@example.com>
48 committer-time 1112912053
51 previous baf5e0b3869e0b2b2beb395a3720c7b51eac94fc file
66 test_expect_success
'blame --porcelain output' '
67 git blame --porcelain file >actual &&
68 test_cmp expect actual
85 test_expect_success
'blame --line-porcelain output' '
86 git blame --line-porcelain file >actual &&
87 test_cmp expect actual