summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3c9ae64)
raw | patch | inline | side by side (parent: 3c9ae64)
author | Bert Wesarg <bert.wesarg@googlemail.com> | |
Thu, 9 Dec 2010 20:47:56 +0000 (21:47 +0100) | ||
committer | Pat Thoyts <patthoyts@users.sourceforge.net> | |
Fri, 28 Jan 2011 09:01:17 +0000 (09:01 +0000) |
Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com>
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
lib/diff.tcl | patch | blob | history |
diff --git a/lib/diff.tcl b/lib/diff.tcl
index 20f50ddab2ca7b0fc8d3abec95b74591a1377ceb..22909194d97477febb94291a55a4b8f438bf6c68 100644 (file)
--- a/lib/diff.tcl
+++ b/lib/diff.tcl
#
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"
}
- # -- 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]