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

Re: Running git gui on Windows.

From
Shawn O. Pearce <spearce@spearce.org>
Date
Jul 27, 2008, 15:02 UTC
Message-ID
<20080727150244.GA7687@spearce.org>
In-Reply-To
<g6huoj$9rh$1@ger.gmane.org>
Jurko Gospodnetiii <jurko.gospodnetic@docte.hr> wrote:
>>   Is there a way to run git gui on Windows so it does not block the  
>> calling process?

In traditional UNIX shells this is "git gui &", requesting that the shell background the process, but still monitor it for exit status. On Windows there is no such easy concept.

Show 8 quoted lines
>   I now realized my question did not say exactly what I intended it to.  
> I know I can start 'git gui' using:
>
>   start "" /b cmd /c git gui
>
>   from the command prompt and get the desired effect. I was wondering  
> why git gui does not do this in the first place and whether it could be  
> modified so that this is the default behaviour?

git-gui and gitk won't automatically background themselves, as they are primarily developed on UNIX and have a UNIX like interface to them, including backgrounding behavior.

We could add a -f flag to git-gui, such that "git gui -f" causes it to fork+exec a new wish process, completely disconnecting it from the calling shell. (-f stolen from OpenSSH's ssh -f host xterm example) I'd accept a patch for it, but its not high on my list of things to write and debug myself.

-- 
Shawn.
Previous: Jurko Gospodnetić
Message 3 of 3 in “Running git gui on Windows.”
  1. Jurko GospodnetićJul 27, 2008
  2. Jurko GospodnetićJul 27, 2008
  3. Shawn O. PearceJul 27, 2008

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.