From: Shawn O. Pearce Date: Fri, 14 Dec 2007 06:51:22 +0000 (-0500) Subject: git-gui: Handle file mode changes (644->755) in diff viewer X-Git-Tag: gitgui-0.9.1~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a4750dd26671427009cc2c7a6a303f7ad8c39e8a;p=git.git git-gui: Handle file mode changes (644->755) in diff viewer Johannes Sixt pointed out the diff headers "old mode ..." and "new mode ..." were not being parsed properly by git-gui. We now include them in the diff viewer for a file. Signed-off-by: Shawn O. Pearce --- diff --git a/lib/diff.tcl b/lib/diff.tcl index 43565e412..18aba3eae 100644 --- a/lib/diff.tcl +++ b/lib/diff.tcl @@ -220,6 +220,7 @@ proc read_diff {fd} { if {[string match {mode *} $line] || [string match {new file *} $line] + || [regexp {^(old|new) mode *} $line] || [string match {deleted file *} $line] || [string match {deleted symlink} $line] || [string match {Binary files * and * differ} $line]