[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.90-38-gd0c5761

David Paleino dapal at debian.org
Thu Nov 10 00:18:55 UTC 2011


The following commit has been merged in the master branch:
commit d0c5761e5bb0911f556ff18d6a72ca82a2d8a490
Author: David Paleino <dapal at debian.org>
Date:   Thu Nov 10 01:18:23 2011 +0100

    Commit make-changelog release helper

diff --git a/extra/make-changelog.py b/extra/make-changelog.py
new file mode 100755
index 0000000..7bf99bc
--- /dev/null
+++ b/extra/make-changelog.py
@@ -0,0 +1,33 @@
+#!/usr/bin/python
+# -*- encoding: utf-8 -*-
+
+import git
+import sys
+from collections import defaultdict
+from textwrap import wrap
+from email.Utils import formatdate
+
+repo = git.Repo('.')
+start = git.Commit(repo, sys.argv[1])
+end = git.Commit(repo, 'HEAD')
+
+
+curlog = repo.log(end)
+oldlog = repo.log(start)
+
+changelog = defaultdict(list)
+
+for id in repo.commits_between(start, end):
+    commit = git.Commit(repo, id)
+    changelog[commit.author.name].append(commit.summary)
+
+print 'bash-completion (X.Y)'
+print
+
+for author in sorted(changelog.keys()):
+    print "  [ %s ]" % author
+    for log in changelog[author]:
+        print '\n'.join(wrap(log, initial_indent='  * ', subsequent_indent='    '))
+    print
+
+print ' -- David Paleino <d.paleino at gmail.com> ', formatdate(localtime=True)

-- 
bash-completion



More information about the Bash-completion-commits mailing list