]> andersk Git - zcommit.git/blobdiff - zcommit.py
Added a README
[zcommit.git] / zcommit.py
index 14fa1b87a2e7ff22653127907db6aa4ec53a0b90..e56aedb259d864b1b0c8446910d382e264652005 100755 (executable)
@@ -78,11 +78,11 @@ class Application(object):
                     inst = opts.get('instance', c['id'][:8])
                     actions = []
                     if c.get('added'):
-                        actions.append('Added: %s\n' % ', '.join(c['added']))
+                        actions.append('Added: %s\n' % '\n  '.join(c['added']))
                     if c.get('removed'):
-                        actions.append('Removed: %s\n' % ', '.join(c['removed']))
+                        actions.append('Removed: %s\n' % '\n  '.join(c['removed']))
                     if c.get('modified'):
-                        actions.append('Modified: %s\n' % ', '.join(c['modified']))
+                        actions.append('Modified: %s\n' % '\n  '.join(c['modified']))
                     if not actions:
                         actions.append('Something weird happened... could not figure out what action to take')
                     info = {'name' : c['author']['name'],
@@ -91,9 +91,8 @@ class Application(object):
                             'timestamp' : c['timestamp'],
                             'actions' : '--\n'.join(actions)}
                     
-                    msg = """%(name)s <%(email)s>
-%(message)s
-%(timestamp)s
+                    msg = """%(name)s <%(email)s> (%(timestamp)s)
+> %(message)s
 --
 %(actions)s""" % info
                     zephyr(sender, opts['class'], inst, zsig, msg)
This page took 0.258224 seconds and 4 git commands to generate.