[meld] maint: Have the commit helper take a message for routine commits
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] maint: Have the commit helper take a message for routine commits
- Date: Sat, 23 Aug 2014 04:42:35 +0000 (UTC)
commit 6b6b8468d1042e841d86b2736da54f22bc91c8de
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sat Aug 23 14:28:59 2014 +1000
maint: Have the commit helper take a message for routine commits
maint.py | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/maint.py b/maint.py
index 65ec7d0..ca47a99 100755
--- a/maint.py
+++ b/maint.py
@@ -255,7 +255,7 @@ def pull():
call_with_output(cmd, timeout=None)
-def commit():
+def commit(message=None):
cmd = ['git', 'diff', 'HEAD']
call_with_output(cmd, echo_stdout=True)
confirm = click.confirm('\nCommit this change?', default=True)
@@ -263,6 +263,8 @@ def commit():
return
cmd = ['git', 'commit', '-a']
+ if message:
+ cmd.append('-m ' + message)
call_with_output(cmd, timeout=None)
@@ -402,7 +404,7 @@ def version_bump():
def make_release(ctx):
pull()
ctx.forward(news)
- commit()
+ commit(message='Update NEWS')
push()
archive_path = ctx.forward(dist)
ctx.forward(tag)
@@ -411,7 +413,7 @@ def make_release(ctx):
ctx.forward(email, filename=file_prefix + '-email')
ctx.forward(markdown, filename=file_prefix + '.md')
ctx.forward(version_bump)
- commit()
+ commit(message='Post-release version bump')
push()
# TODO: ssh in and run ftpadmin install
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]