summaryrefslogtreecommitdiff
path: root/extra/make-changelog.py
diff options
context:
space:
mode:
Diffstat (limited to 'extra/make-changelog.py')
-rwxr-xr-xextra/make-changelog.py11
1 files changed, 2 insertions, 9 deletions
diff --git a/extra/make-changelog.py b/extra/make-changelog.py
index 7bf99bcc..abf5bd39 100755
--- a/extra/make-changelog.py
+++ b/extra/make-changelog.py
@@ -8,17 +8,10 @@ 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)
+for id in repo.iter_commits('%s..HEAD' % sys.argv[1]):
+ commit = repo.commit(id)
changelog[commit.author.name].append(commit.summary)
print 'bash-completion (X.Y)'