diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2006-11-19 01:06:42 -0500 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2006-11-19 01:06:42 -0500 |
commit | 0d5709cf88e9f242e0e31ccbda42a1c827c90a22 (patch) | |
tree | bb16b5121f1882a5e247ae0a77c9b0f3799fbfa1 /git-gui | |
parent | 86291555c94300b057a156d87239a6cab09511b3 (diff) | |
download | git-0d5709cf88e9f242e0e31ccbda42a1c827c90a22.tar.gz |
git-gui: Describe deleted symlinks in a more friendly way.
Currently core-git's diff utilities report a deleted symlink as a
deleted file with a mode of 120000. This is not nearly as user
friendly as one might like, as the user must remember that 120000
is the UNIX mode bits for a symlink. So instead we transform
the not-so-friendly message from core-git into a slightly more
user friendly "deleted symlink" message.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'git-gui')
-rwxr-xr-x | git-gui | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -628,6 +628,9 @@ proc read_diff {fd} { if {[string match {diff --combined *} $line]} continue if {[string match {--- *} $line]} continue if {[string match {+++ *} $line]} continue + if {$line eq {deleted file mode 120000}} { + set line "deleted symlink" + } if {[string match index* $line]} { if {[string first , $line] >= 0} { set diff_3way 1 |