Ignore pseudo diff stanzas which mention binary files.
This commit is contained in:
parent
97ea828532
commit
4951498c0b
@ -72,6 +72,9 @@ class IDF_Diff
|
||||
$indiff = true;
|
||||
continue;
|
||||
} else if (0 === strpos($line, '=========')) {
|
||||
// ignore pseudo stanzas with a hint of a binary file
|
||||
if (preg_match("/^# (.+) is binary/", $this->lines[$i]))
|
||||
continue;
|
||||
// by default always use the new name of a possibly renamed file
|
||||
$current_file = self::getMtnFile($this->lines[$i+1]);
|
||||
// mtn 0.48 and newer set /dev/null as file path for dropped files
|
||||
|
Loading…
Reference in New Issue
Block a user