diff options
author | David Paleino <dapal@debian.org> | 2013-04-05 12:02:07 +0200 |
---|---|---|
committer | David Paleino <dapal@debian.org> | 2013-04-05 12:02:07 +0200 |
commit | 4d096e0b873478c7b01c5019038c646b7184da60 (patch) | |
tree | d8a03fd77c684cf6b59c379fee4bec188866b965 | |
parent | 1a3967c8d4d8d9027040e00ecf0756dafaeb88ec (diff) | |
download | bash-completion-4d096e0b873478c7b01c5019038c646b7184da60.tar.gz |
Fix helper script to create changelogs
-rwxr-xr-x | extra/make-changelog.py | 11 |
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)' |