diff options
author | Phil Lawrence <prlawrence@gmail.com> | 2009-03-09 17:09:49 -0500 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2009-03-09 16:21:17 -0700 |
commit | 880fa117f197a2c1f41fb16b09cd1e8d6050d6fc (patch) | |
tree | 56913527947dc2fa643e8f7c9ebf2687df911208 | |
parent | git-gui: Support more git version notations. (diff) | |
download | tgif-880fa117f197a2c1f41fb16b09cd1e8d6050d6fc.tar.xz |
Append ampersand to "Target" of lnk files created by do_cygwin_shortcut
The git-gui menu item "Repository | Create Desktop Icon" creates a
shortcut (.lnk file) on the Windows desktop. The purpose of the
created shortcut is to make it easy for a user to launch git-gui
for a particular repo in the future.
A Windows user would expect to see git gui launch when they click
the shortcut; they would not expect (nor want) to see a cmd window
open and remain open in the background.
msysGit avoids opening a command window altogether when it's Git GUI
shortcut is used. Ideally, git on cygwin would also have shortcuts
that simply open the GUI, but as a first step, this change allows
the shell window to politely disappear after starting git gui as a
background process.
Signed-off-by: Phil Lawrence <prlawrence@gmail.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
-rw-r--r-- | lib/shortcut.tcl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/shortcut.tcl b/lib/shortcut.tcl index 38c3151b05..2f20eb39c0 100644 --- a/lib/shortcut.tcl +++ b/lib/shortcut.tcl @@ -54,7 +54,7 @@ proc do_cygwin_shortcut {} { $argv0] win32_create_lnk $fn [list \ $sh -c \ - "CHERE_INVOKING=1 source /etc/profile;[sq $me]" \ + "CHERE_INVOKING=1 source /etc/profile;[sq $me] &" \ ] \ [file dirname [file normalize [gitdir]]] } err]} { |