projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
90d88e9
)
Fix ChangeLog generation when only one file changes
author
Colin Leroy
<colin@colino.net>
Thu, 24 Apr 2014 20:30:42 +0000
(22:30 +0200)
committer
Colin Leroy
<colin@colino.net>
Thu, 24 Apr 2014 20:30:42 +0000
(22:30 +0200)
tools/gitlog2changelog.py
patch
|
blob
|
history
diff --git
a/tools/gitlog2changelog.py
b/tools/gitlog2changelog.py
index c5dc10fa59892675462573dc1a5ecd2913ff69db..82fc4491ccdf7bfd348e5fce31f4a825cafef35a 100755
(executable)
--- a/
tools/gitlog2changelog.py
+++ b/
tools/gitlog2changelog.py
@@
-60,12
+60,14
@@
for line in fin:
author = re.split('<', authorList[1], 1)[0]
author = "[" + author[0:len(author)-1]+"]"
authorFound = True
author = re.split('<', authorList[1], 1)[0]
author = "[" + author[0:len(author)-1]+"]"
authorFound = True
+ continue
# Match the date line
elif re.match('^Date:', line) >= 0:
dateList = re.split(': ', line, 1)
date = dateList[1]
date = date[0:len(date)-1]
dateFound = True
# Match the date line
elif re.match('^Date:', line) >= 0:
dateList = re.split(': ', line, 1)
date = dateList[1]
date = date[0:len(date)-1]
dateFound = True
+ continue
# The svn-id lines are ignored
elif re.match(' git-svn-id:', line) >= 0:
continue
# The svn-id lines are ignored
elif re.match(' git-svn-id:', line) >= 0:
continue
@@
-88,7
+90,7
@@
for line in fin:
else:
message = message + " " + line.strip()
# If this line is hit all of the files have been stored for this commit
else:
message = message + " " + line.strip()
# If this line is hit all of the files have been stored for this commit
- elif re.search('file
s
changed', line) >= 0:
+ elif re.search('file
(s)?
changed', line) >= 0:
filesFound = True
continue
# Collect the files for this commit. FIXME: Still need to add +/- to files
filesFound = True
continue
# Collect the files for this commit. FIXME: Still need to add +/- to files