Code

t4201 (shortlog): Test output format with multiple authors
authorJonathan Nieder <jrnieder@gmail.com>
Tue, 4 May 2010 02:58:04 +0000 (21:58 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 4 May 2010 22:29:56 +0000 (15:29 -0700)
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4201-shortlog.sh

index 438a826473b483a9aad94264c62687d3e78861f0..6bfd0c0582ed1e0774e7e0de45b2490ffa50bb0f 100755 (executable)
@@ -36,6 +36,10 @@ test_expect_success 'setup' '
 
        echo 5 >a1 &&
        git commit --quiet -m "a                                                                12      34      56      78" a1
+
+       echo 6 >a1 &&
+       git commit --quiet -m "Commit by someone else" \
+               --author="Someone else <not!me>" a1
 '
 
 test_expect_success 'shortlog wrapping' '
@@ -51,6 +55,9 @@ A U Thor (5):
       a                                                                12      34
          56    78
 
+Someone else (1):
+      Commit by someone else
+
 EOF
        git shortlog -w HEAD >out &&
        test_cmp expect out