Code

git-gui: Hide the ugly bash command line from the windows desktop icon.
authorShawn O. Pearce <spearce@spearce.org>
Sun, 21 Jan 2007 00:45:26 +0000 (19:45 -0500)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 21 Jan 2007 07:54:18 +0000 (02:54 -0500)
The user really doesn't need to see the technical details of how we
launch git-gui from within their "desktop icon".  Instead we should hide
the command line from being displayed when the icon launches by putting
@ at the start of the line.  If they really need to see the command we
are running they can edit the batch file.

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

diff --git a/git-gui b/git-gui
index 11ba41f74bfe78c21cff2fdbe354f0abe30edd78..b79eb451d2bd3c04669115b75ef5c3159e9382ca 100755 (executable)
--- a/git-gui
+++ b/git-gui
@@ -2754,7 +2754,7 @@ proc do_windows_shortcut {} {
                                regsub -all ' $me "'\\''" me
                                regsub -all ' $gd "'\\''" gd
                                puts $fd "@ECHO Starting git-gui... Please wait..."
-                               puts -nonewline $fd "\"$sh\" --login -c \""
+                               puts -nonewline $fd "@\"$sh\" --login -c \""
                                puts -nonewline $fd "GIT_DIR='$gd'"
                                puts -nonewline $fd " '$me'"
                                puts $fd "&\""