From: Avery Pennarun Date: Sat, 2 Jan 2010 06:44:04 +0000 (-0500) Subject: Fix generated commit messages. X-Git-Tag: bup-0.01~21 X-Git-Url: https://arthur.barton.de/gitweb/?a=commitdiff_plain;h=5c12e4aa8a17109e80aabc63a5e826fc95a32701;p=bup.git Fix generated commit messages. The first (summary) line should be shorter so that git log looks prettier. --- diff --git a/cmd-save.py b/cmd-save.py index e188860..458dc1a 100755 --- a/cmd-save.py +++ b/cmd-save.py @@ -118,7 +118,7 @@ tree = root.gen_tree() if opt.tree: print tree if opt.commit or opt.name: - msg = 'Generated by command:\n%r' % sys.argv + msg = 'bup save\n\nGenerated by command:\n%r' % sys.argv ref = opt.name and ('refs/heads/%s' % opt.name) or None commit = git.gen_commit_easy(ref, tree, msg) if opt.commit: diff --git a/cmd-split.py b/cmd-split.py index 096ecf6..732f608 100755 --- a/cmd-split.py +++ b/cmd-split.py @@ -28,7 +28,7 @@ if opt.blobs: if opt.tree: print tree if opt.commit or opt.name: - msg = 'Generated by command:\n%r' % sys.argv + msg = 'bup split\n\nGenerated by command:\n%r' % sys.argv ref = opt.name and ('refs/heads/%s' % opt.name) or None commit = git.gen_commit_easy(ref, tree, msg) if opt.commit: