git-gui: Don't attempt to tag new file/deleted file headers in diffs.
We don't want to tag these new file/delete file lines, as they aren't actually that interesting. Its quite clear from the diff itself that the file is a new file or is a deleted file (as the entire thing will appear in the diff). Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Shawn O. Pearce committed
Jan 22, 2007 at 18:24 UTC
e0c781b34756ce47ab9a6ae89eba8067733d6e5c
1 file changed
+2
git-gui.sh
+2
@@ -704,6 +704,8 @@ proc read_diff {fd} {
704
705
if {[string match {index *} $line]
706
|| [string match {mode *} $line]
707
+ || [string match {new file *} $line]
708
+ || [string match {deleted file *} $line]
709
|| [regexp {^\* Unmerged path } $line]} {
710
set tags {}
711
} elseif {$is_3way_diff} {