Code

git-gui: Display the directory we are entering during startup.
authorShawn O. Pearce <spearce@spearce.org>
Sun, 21 Jan 2007 03:00:28 +0000 (22:00 -0500)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 21 Jan 2007 07:54:21 +0000 (02:54 -0500)
If the user has many git-gui icons it may be confusing when they
start one which git-gui is still coming up.  So on the windows
systems we now include an echo statement which displays the full
pathname of the working directory we are trying to enter into.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui.sh

index 0851eaeebcc8a9c4c69bb1f1f47d76c7e68eab9d..e719314e7b4260a56280ebc5a38924423dfdb51f 100755 (executable)
@@ -2773,9 +2773,14 @@ proc do_windows_shortcut {} {
                                        --unix \
                                        --absolute \
                                        [gitdir]]
+                               set gw [exec cygpath \
+                                       --windows \
+                                       --absolute \
+                                       [file dirname [gitdir]]]
                                regsub -all ' $me "'\\''" me
                                regsub -all ' $gd "'\\''" gd
-                               puts $fd "@ECHO Starting git-gui... Please wait..."
+                               puts $fd "@ECHO Entering $gw"
+                               puts $fd "@ECHO Starting git-gui... please wait..."
                                puts -nonewline $fd "@\"$sh\" --login -c \""
                                puts -nonewline $fd "GIT_DIR='$gd'"
                                puts -nonewline $fd " '$me'"