From: Bert Wesarg Date: Thu, 9 Dec 2010 20:47:56 +0000 (+0100) Subject: git-gui: move 3way diff autodetect up X-Git-Tag: gitgui-0.14.0~15 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=963ceab57e0743ed76889b93d051dee828eed859;p=git.git git-gui: move 3way diff autodetect up Signed-off-by: Bert Wesarg Signed-off-by: Pat Thoyts --- diff --git a/lib/diff.tcl b/lib/diff.tcl index 20f50ddab..22909194d 100644 --- a/lib/diff.tcl +++ b/lib/diff.tcl @@ -393,6 +393,10 @@ proc read_diff {fd conflict_size cont_info} { # if {[regexp {^@@+ } $line]} {set ::current_diff_inheader 0} + # -- Automatically detect if this is a 3 way diff. + # + if {[string match {@@@ *} $line]} {set is_3way_diff 1} + if {$::current_diff_inheader} { append current_diff_header $line "\n" @@ -413,9 +417,6 @@ proc read_diff {fd conflict_size cont_info} { } - # -- Automatically detect if this is a 3 way diff. - # - if {[string match {@@@ *} $line]} {set is_3way_diff 1} if {[string match {new file *} $line] || [regexp {^(old|new) mode *} $line]