diff options
author | Gabriel F. T. Gomes <gabriel@inconstante.eti.br> | 2017-09-25 23:46:54 -0300 |
---|---|---|
committer | Gabriel F. T. Gomes <gabriel@inconstante.eti.br> | 2017-09-25 23:46:54 -0300 |
commit | 6d88f1055806932d9291f96847d2b691cccda2cd (patch) | |
tree | 0ff79eedaa8a239331256048981deedbd0721965 /extra | |
parent | 059a87a5936cfebfd2d71ab8057002cafb2ea051 (diff) | |
download | bash-completion-6d88f1055806932d9291f96847d2b691cccda2cd.tar.gz |
New upstream version 2.7upstream/2.7
Diffstat (limited to 'extra')
-rwxr-xr-x | extra/make-changelog.py | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/extra/make-changelog.py b/extra/make-changelog.py new file mode 100755 index 00000000..184a1d2e --- /dev/null +++ b/extra/make-changelog.py @@ -0,0 +1,30 @@ +#!/usr/bin/python +# -*- encoding: utf-8 -*- + +from collections import defaultdict +from email.utils import formatdate +import sys +from textwrap import wrap + +import git + +repo = git.Repo('.') +changelog = defaultdict(list) + +for id in repo.iter_commits('%s..HEAD' % sys.argv[1]): + commit = repo.commit(id) + if not commit.summary.startswith("Merge pull request "): + 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(' -- Ville Skyttä <ville.skytta@iki.fi> %s' % + formatdate(localtime=True)) |