Skip to content

Commit

Permalink
git-wrapper: let git gui run in the background
Browse files Browse the repository at this point in the history
This fixes git-for-windows#172.

Signed-off-by: Nico Rieck <nico.rieck@gmail.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
  • Loading branch information
gix authored and dscho committed Oct 4, 2015
1 parent 2003e60 commit 17a17d8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions compat/win32/git-wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,10 @@ static LPWSTR fixup_commandline(LPWSTR exepath, LPWSTR *exep, int *wait,
}
wcscat(cmd, p);
}

if (wargc > 1 && !wcscmp(wargv[1], L"gui"))
*wait = 0;

LocalFree(wargv);

return cmd;
Expand Down Expand Up @@ -342,6 +346,7 @@ int main(void)
}
else if (!wcsicmp(basename, L"git-gui.exe")) {
static WCHAR buffer[BUFSIZE];
wait = 0;
allocate_console = 1;
if (!PathRemoveFileSpec(exepath)) {
fwprintf(stderr,
Expand Down

0 comments on commit 17a17d8

Please sign in to comment.