Permalink
Browse files

Show commit message first in the mail.

Move the link to gitweb as well as the author information further
down in the message. Per comments from Tom Lane.
  • Loading branch information...
1 parent 727f50e commit ad8d6c42edcd48607faf3b19674098debfbeb5a2 @mhagander committed Aug 31, 2010
Showing with 7 additions and 8 deletions.
  1. +7 −8 commitmsg.py
View
@@ -187,14 +187,6 @@ def parse_commit_log(lines):
# Everything is parsed, put together an email
mail = []
- mail.append("")
- mail.append("Commit: %s" % (
- c.get('commitmsg', 'gitweb').replace('$action','commitdiff').replace('$commit', commitinfo[7:])))
- if committerinfo[7:] != authorinfo[7:]:
- mail.append(authorinfo) # already includes Author: part
- mail.append("")
- mail.append("Log Message")
- mail.append("-----------")
mail.extend(commitmsg)
mail.append("")
if len(branches) > 1:
@@ -205,6 +197,13 @@ def parse_commit_log(lines):
mail.append("------")
mail.append("\n".join([branch.strip(" *\r\n") for branch in branches]))
mail.append("")
+ mail.append("Details")
+ mail.append("-------")
+ mail.append(
+ c.get('commitmsg', 'gitweb').replace('$action','commitdiff').replace('$commit', commitinfo[7:]))
+ if committerinfo[7:] != authorinfo[7:]:
+ mail.append(authorinfo) # already includes Author: part
+ mail.append("")
mail.append("Modified Files")
mail.append("--------------")
mail.extend(diffstat)

0 comments on commit ad8d6c4

Please sign in to comment.