threads / discuss / 1836

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

Subject: [Take 2] Make "git shortlog" understand raw logs

## tl;dr

One message between Sep 17, 2005 and Sep 17, 2005.

replies: 0people: 1as markdown or json

Linus Torvalds· Sep 17, 2005, 01:02 UTC · lore

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++;
 	

← back to recent threads