projects
/
fdkaac.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30c77df
)
update git2changelog to accept non-ascii output
author
nu774
<honeycomb77@gmail.com>
Mon, 4 Nov 2013 03:18:27 +0000
(12:18 +0900)
committer
nu774
<honeycomb77@gmail.com>
Mon, 4 Nov 2013 03:18:27 +0000
(12:18 +0900)
git2changelog.py
patch
|
blob
|
blame
|
history
diff --git
a/git2changelog.py
b/git2changelog.py
index 694e9baf3339f9c104705a889e74d8c2e4b7a012..2b2ba605fb713aea812dc059c81cdae0b2845ce2 100755
(executable)
--- a/
git2changelog.py
+++ b/
git2changelog.py
@@
-39,6
+39,6
@@
with Popen(GITLOG_CMD, shell=False, stdout=PIPE).stdout as pipe:
commits = parse_gitlog(pipe)
commits_by_date_author = groupby(commits, key=lambda x: (x.date, x.author))
for (date, author), commits in commits_by_date_author:
- output(
'{0} {1}\n\n'.format(date, author
))
+ output(
u'{0} {1}\n\n'.format(date, author).encode('utf-8'
))
for c in commits:
- output(
' * {0}{1}\n\n'.format(c.subject, c.ref
))
+ output(
u' * {0}{1}\n\n'.format(c.subject, c.ref).encode('utf-8'
))
This page took
0.011475 seconds
and
4
git commands to generate.