Skip to content

Commit ed715b5

Browse files
jrngitster
authored andcommitted
t4201 (shortlog): Test output format with multiple authors
Signed-off-by: Jonathan Nieder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent ae00dc1 commit ed715b5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

t/t4201-shortlog.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ test_expect_success 'setup' '
3636
3737
echo 5 >a1 &&
3838
git commit --quiet -m "a 12 34 56 78" a1
39+
40+
echo 6 >a1 &&
41+
git commit --quiet -m "Commit by someone else" \
42+
--author="Someone else <not!me>" a1
3943
'
4044

4145
test_expect_success 'shortlog wrapping' '
@@ -51,6 +55,9 @@ A U Thor (5):
5155
a 12 34
5256
56 78
5357
58+
Someone else (1):
59+
Commit by someone else
60+
5461
EOF
5562
git shortlog -w HEAD >out &&
5663
test_cmp expect out

0 commit comments

Comments
 (0)