]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - contrib/mklog
Make mklog more robust.
[thirdparty/gcc.git] / contrib / mklog
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)