Message ID | e759026c-4f49-cc2a-7885-10b88212d20e@gmail.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | b4 can't diff a series with a file renamed, then modified | expand |
diff --git a/b4/__init__.py b/b4/__init__.py index 4456414..fb618c7 100644 --- a/b4/__init__.py +++ b/b4/__init__.py @@ -1517,7 +1517,7 @@ class LoreMessage: if line.find('diff ') != 0 and line.find('index ') != 0: continue matches = re.search(r'^diff\s+--git\s+\w/(.*)\s+\w/(.*)$', line) - if matches and matches.groups()[0] == matches.groups()[1]: + if matches: curfile = matches.groups()[0] continue matches = re.search(r'^index\s+([\da-f]+)\.\.[\da-f]+.*$', line)