git-gui: Don't attempt to tag new file/deleted file headers in diffs.
[gitweb.git] / git-gui.sh
index 2350baa3a36d35f17167bc2f04061ccfbb222d98..d697d1ebe2a1a4b37a5d21e5afab8efde1df0d32 100755 (executable)
@@ -704,6 +704,8 @@ proc read_diff {fd} {
 
                if {[string match {index *} $line]
                        || [string match {mode *} $line]
+                       || [string match {new file *} $line]
+                       || [string match {deleted file *} $line]
                        || [regexp {^\* Unmerged path } $line]} {
                        set tags {}
                } elseif {$is_3way_diff} {