Append ampersand to "Target" of lnk files created by do_cygwin_shortcut
commit880fa117f197a2c1f41fb16b09cd1e8d6050d6fc
authorPhil Lawrence <prlawrence@gmail.com>
Mon, 9 Mar 2009 22:09:49 +0000 (9 17:09 -0500)
committerShawn O. Pearce <spearce@spearce.org>
Mon, 9 Mar 2009 23:21:17 +0000 (9 16:21 -0700)
tree56913527947dc2fa643e8f7c9ebf2687df911208
parent764369c5ea730894c75f32c2f94a651dd517fc5b
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>
lib/shortcut.tcl