From e0c781b34756ce47ab9a6ae89eba8067733d6e5c Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Mon, 22 Jan 2007 18:24:45 -0500 Subject: [PATCH] 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 --- git-gui.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/git-gui.sh b/git-gui.sh index 2350baa3a..d697d1ebe 100755 --- a/git-gui.sh +++ b/git-gui.sh @@ -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} { -- 2.26.2