# Copyright 2008 Marcus D. Hanwell <marcus@cryos.org>
# Distributed under the terms of the GNU General Public License v2 or later
-# Modified by TAMUKI Shoichi <tamuki@linet.gr.jp>
+# Modified by (C) 2012-2014 TAMUKI Shoichi <tamuki@linet.gr.jp>
import os, re
if not message.endswith("\n"):
message += "\n"
messageItem = True
- if not message.endswith("\n"):
+ if message.endswith("."):
+ message += " "
+ elif not message.endswith("\n"):
message += " "
message += line.strip()
# Collect the files for this commit. FIXME: Still need to add +/- to files
commitSet = ""
elif authorLine != prevAuthorLine:
# Write out the commit lines
- fout.write(commitSet)
- fout.write("\n\n" + authorLine + "\n")
+ fout.write(commitSet + "\n")
+ fout.write("\n" + authorLine + "\n")
commitSet = ""
# Assemble the actual commit message line(s) and limit the line length