Code

[PATCH] Make "git shortlog" understand raw logs
authorLinus Torvalds <torvalds@osdl.org>
Sat, 17 Sep 2005 01:02:46 +0000 (18:02 -0700)
committerJunio C Hamano <junkio@cox.net>
Sat, 17 Sep 2005 18:57:50 +0000 (11:57 -0700)
This is a nicer fix for git-shortlog being unable to handle the raw log
format. Just use a more permissive regexp instead of doing two nearly
identical ones.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-shortlog.perl

index 107c895df39a9a26ac5eb30f0d45d9e46dc4caaf..8f0984be02c56b23edf4c705fa8a75b95c66edcc 100755 (executable)
@@ -108,7 +108,7 @@ sub changelog_input {
                if ($pstate == 1) {
                        my ($email);
 
-                       next unless /^Author: (.*)<(.*)>.*$/;
+                       next unless /^[Aa]uthor:? (.*)<(.*)>.*$/;
        
                        $n_records++;