git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Append ampersand to "Target" of lnk files created by do_cygwin_shortcut

From
Phil Lawrence <prlawrence@gmail.com>
Date
Mar 9, 2009, 22:09 UTC
Message-ID
<530ac78e0903091509y5209dec9q4c716d1e400357f3@mail.gmail.com>

On Mon, Mar 9, 2009 at 4:12 PM, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:

>
> <snip!>
>
> Could you add those explanations to the commit message?
Done:
>From 0780db8d53bdd0bb02b154d23c3c80bcccc0d955 Mon Sep 17 00:00:00 2001
From: Phil Lawrence <prlawrence@gmail.com>
Date: Thu, 5 Mar 2009 17:56:58 -0600
Subject: [PATCH] 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>
---
 lib/shortcut.tcl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/shortcut.tcl b/lib/shortcut.tcl
index 38c3151..2f20eb3 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]} {
--
1.6.1.9.g97c34

Phil Lawrence
Next: Shawn O. Pearce
Message 1 of 2 in “Append ampersand to "Target" of lnk files created by do_cygwin_shortcut”
  1. Append ampersand to "Target" of lnk files created by do_cygwin_shortcutPhil Lawrence, Mar 9, 2009
  2. Shawn O. PearceMar 9, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.