author | Junio C Hamano <gitster@pobox.com> | |
Fri, 2 Sep 2011 20:18:11 +0000 (13:18 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 2 Sep 2011 20:18:11 +0000 (13:18 -0700) |
* gb/maint-am-stgit-author-to-from-fix:
am: fix stgit patch mangling
am: fix stgit patch mangling
git-am.sh | patch | blob | history |
diff --git a/git-am.sh b/git-am.sh
index 745fda9cbde1193975392b74374227a3655f0ac0..016b5056eb29fb24d06667c340ad372ed096d4dc 100755 (executable)
--- a/git-am.sh
+++ b/git-am.sh
perl -ne 'BEGIN { $subject = 0 }
if ($subject > 1) { print ; }
elsif (/^\s+$/) { next ; }
- elsif (/^Author:/) { print s/Author/From/ ; }
+ elsif (/^Author:/) { s/Author/From/ ; print ;}
elsif (/^(From|Date)/) { print ; }
elsif ($subject) {
$subject = 2 ;