# [Take 2] Make "git shortlog" understand raw logs

1 messages from 2005-09-17 to 2005-09-17. Participants: Linus Torvalds.
Thread: https://gitlist.dev/t/1836

## Linus Torvalds, 2005-09-17 01:02

Subject: [Take 2] Make "git shortlog" understand raw logs
Message-ID: <Pine.LNX.4.58.0509161758270.26803@g5.osdl.org>
URL: https://gitlist.dev/e/Pine.LNX.4.58.0509161758270.26803%40g5.osdl.org

```

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>
---
diff --git a/git-shortlog.perl b/git-shortlog.perl
--- a/git-shortlog.perl
+++ b/git-shortlog.perl
@@ -108,7 +108,7 @@ sub changelog_input {
 		if ($pstate == 1) {
 			my ($email);
 
-			next unless /^Author: (.*)<(.*)>.*$/;
+			next unless /^[Aa]uthor:? (.*)<(.*)>.*$/;
 	
 			$n_records++;
 	

```
