mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-27 05:44:15 +08:00
Make mklog more robust.
2019-11-08 Martin Liska <mliska@suse.cz> * mklog: The script fails for patches that contain: '---param=foo=bar xyz'. From-SVN: r277952
This commit is contained in:
parent
69a5dd5732
commit
617c564bf0
@ -1,3 +1,8 @@
|
||||
2019-11-08 Martin Liska <mliska@suse.cz>
|
||||
|
||||
* mklog: The script fails for patches that contain:
|
||||
'---param=foo=bar xyz'.
|
||||
|
||||
2019-09-18 Martin Liska <mliska@suse.cz>
|
||||
|
||||
* clang-format: Tweak configuration based on new
|
||||
|
@ -178,8 +178,8 @@ class Hunk:
|
||||
def is_file_diff_start(s):
|
||||
# Don't be fooled by context diff line markers:
|
||||
# *** 385,391 ****
|
||||
return ((s.startswith('***') and not s.endswith('***'))
|
||||
or (s.startswith('---') and not s.endswith('---')))
|
||||
return ((s.startswith('*** ') and not s.endswith('***'))
|
||||
or (s.startswith('--- ') and not s.endswith('---')))
|
||||
|
||||
def is_ctx_hunk_start(s):
|
||||
return re.match(r'^\*\*\*\*\*\**', s)
|
||||
|
Loading…
Reference in New Issue
Block a user