Permalink
Browse files

Show branch/branches depending on if one or more branches were affected.

  • Loading branch information...
1 parent 2683ca7 commit 12fdaabcc8eeda689df67e690da0c4c164fc5fb5 @mhagander committed Jul 21, 2010
Showing with 6 additions and 2 deletions.
  1. +6 −2 commitmsg.py
View
@@ -173,8 +173,12 @@ def parse_commit_log(lines):
mail.append("-----------")
mail.extend(commitmsg)
mail.append("")
- mail.append("Branches")
- mail.append("--------")
+ if len(branches) > 1:
+ mail.append("Branches")
+ mail.append("--------")
+ else:
+ mail.append("Branch")
+ mail.append("------")
mail.append("\n".join([branch.strip(" *\r\n") for branch in branches]))
mail.append("")
mail.append("Modified Files")

0 comments on commit 12fdaab

Please sign in to comment.