summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <git@the-compiler.org>2015-03-18 20:24:47 +0100
committerFlorian Bruhin <git@the-compiler.org>2015-03-19 06:21:08 +0100
commita0381e168353c54995b2000e770cd0fdd53a49e5 (patch)
tree00a6e20fd0f98837f04a31f784699e855f008c08
parent891bb86175f1ceada572353b1690065818e785d1 (diff)
downloadqutebrowser-a0381e168353c54995b2000e770cd0fdd53a49e5.tar.gz
qutebrowser-a0381e168353c54995b2000e770cd0fdd53a49e5.zip
Make it possible to correct author names in src2asciidoc.
-rwxr-xr-xscripts/src2asciidoc.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/src2asciidoc.py b/scripts/src2asciidoc.py
index 438aa2f05..9c9e6e2fd 100755
--- a/scripts/src2asciidoc.py
+++ b/scripts/src2asciidoc.py
@@ -315,8 +315,11 @@ def generate_settings(filename):
def _get_authors():
"""Get a list of authors based on git commit logs."""
+ corrections = {'binix': 'sbinix'}
commits = subprocess.check_output(['git', 'log', '--format=%aN'])
- cnt = collections.Counter(commits.decode('utf-8').splitlines())
+ authors = [corrections.get(author, author)
+ for author in commits.decode('utf-8').splitlines()]
+ cnt = collections.Counter(authors)
return sorted(cnt, key=lambda k: (cnt[k], k), reverse=True)