projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6936382
)
mklog: do not depend on recent unidiff version
author
Martin Liska
<mliska@suse.cz>
Wed, 14 Dec 2022 10:33:25 +0000
(11:33 +0100)
committer
Martin Liska
<mliska@suse.cz>
Wed, 14 Dec 2022 10:33:25 +0000
(11:33 +0100)
contrib/ChangeLog:
* mklog.py: Check for number of hunks and not if a modified
file is binary.
contrib/mklog.py
patch
|
blob
|
history
diff --git
a/contrib/mklog.py
b/contrib/mklog.py
index 358b7fc6b8b14b42f43187cd481812eb176cca5f..5dea8a05c0c26eef0ba4557e3b9f090e4bdaf30c 100755
(executable)
--- a/
contrib/mklog.py
+++ b/
contrib/mklog.py
@@
-186,8
+186,9
@@
def generate_changelog(data, no_functions=False, fill_pr_titles=False,
# contains commented code which a note that it
# has not been tested due to a certain PR or DR.
this_file_prs = []
- if not file.is_binary_file:
- for line in list(file)[0][0:10]:
+ hunks = list(file)
+ if hunks:
+ for line in hunks[0][0:10]:
m = pr_regex.search(line.value)
if m:
pr = m.group('pr')