Skip to content

Commit

Permalink
git-gui: Handle file mode changes (644->755) in diff viewer
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shawn O. Pearce committed Dec 14, 2007
1 parent fba6072 commit a4750dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/diff.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit a4750dd

Please sign in to comment.