]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Make mklog more robust.
authorMartin Liska <mliska@suse.cz>
Fri, 8 Nov 2019 08:39:17 +0000 (09:39 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Fri, 8 Nov 2019 08:39:17 +0000 (08:39 +0000)
2019-11-08  Martin Liska  <mliska@suse.cz>

* mklog: The script fails for patches that contain:
'---param=foo=bar xyz'.

From-SVN: r277952

contrib/ChangeLog
contrib/mklog

index 5f62e8bf8d673fd25fdcfd51f75a6f633529479e..f6b353959b4ddfb10a8dcc563149a3ab425616c7 100644 (file)
@@ -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
index 1a0e82d1ddd09194486c391a2dbd5ca10e39f878..71fd427ff61effe9115b35e35b3155551cc440cf 100755 (executable)
@@ -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)