@matheusbsbs / matheus-bagliano / commits / a4750dd266
Fork 0

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 <spearce@spearce.org>

Shawn O. Pearce committed Dec 14, 2007 at 01:51 UTC a4750dd26671427009cc2c7a6a303f7ad8c39e8a
1 file changed +1
lib/diff.tcl
+1
@@ -220,6 +220,7 @@ proc read_diff {fd} {
220
221 if {[string match {mode *} $line]
222 || [string match {new file *} $line]
223 + || [regexp {^(old|new) mode *} $line]
224 || [string match {deleted file *} $line]
225 || [string match {deleted symlink} $line]
226 || [string match {Binary files * and * differ} $line]