git-gui: Don't format the mode line of a diff.
We sometimes see a mode line show up in a diff if the file mode was changed. But its not something we format specially. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Shawn O. Pearce committed
Jan 21, 2007 at 23:11 UTC
8ce03164842d250f1cf1dfbf9a245fd030195e24
1 file changed
+1
git-gui.sh
+1
@@ -709,6 +709,7 @@ proc read_diff {fd} {
709
if {[string match {@@@ *} $line]} {set is_3way_diff 1}
710
711
if {[string match {index *} $line]
712
+ || [string match {mode *} $line]
713
|| [regexp {^\* Unmerged path } $line]} {
714
set tags {}
715
} elseif {$is_3way_diff} {