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

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>

Shawn O. Pearce committed Nov 19, 2006 at 01:06 UTC 0d5709cf88e9f242e0e31ccbda42a1c827c90a22
1 file changed +3
git-gui
+3
@@ -628,6 +628,9 @@ proc read_diff {fd} {
628 if {[string match {diff --combined *} $line]} continue
629 if {[string match {--- *} $line]} continue
630 if {[string match {+++ *} $line]} continue
631 + if {$line eq {deleted file mode 120000}} {
632 + set line "deleted symlink"
633 + }
634 if {[string match index* $line]} {
635 if {[string first , $line] >= 0} {
636 set diff_3way 1