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

git-gui: Display the directory we are entering during startup.

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>

Shawn O. Pearce committed Jan 20, 2007 at 22:00 UTC c2faa43677ec2471dadc3cc789cab27f6bc2abbb
1 file changed +6 -1
git-gui.sh
+6 -1
@@ -2773,9 +2773,14 @@ proc do_windows_shortcut {} {
2773 --unix \
2774 --absolute \
2775 [gitdir]]
2776 + set gw [exec cygpath \
2777 + --windows \
2778 + --absolute \
2779 + [file dirname [gitdir]]]
2780 regsub -all ' $me "'\\''" me
2781 regsub -all ' $gd "'\\''" gd
2778 - puts $fd "@ECHO Starting git-gui... Please wait..."
2782 + puts $fd "@ECHO Entering $gw"
2783 + puts $fd "@ECHO Starting git-gui... please wait..."
2784 puts -nonewline $fd "@\"$sh\" --login -c \""
2785 puts -nonewline $fd "GIT_DIR='$gd'"
2786 puts -nonewline $fd " '$me'"