1. Stefan Saasen
  2. git


Shawn O. Pearce  committed a4750dd

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>

  • Participants
  • Parent commits fba6072
  • Branches master

Comments (0)

Files changed (1)

File lib/diff.tcl

View file
 		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]