From 5c12e4aa8a17109e80aabc63a5e826fc95a32701 Mon Sep 17 00:00:00 2001 From: Avery Pennarun Date: Sat, 2 Jan 2010 01:44:04 -0500 Subject: [PATCH] Fix generated commit messages. The first (summary) line should be shorter so that git log looks prettier. --- cmd-save.py | 2 +- cmd-split.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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: -- 2.39.2