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 #172.

Signed-off-by: Nico Rieck <[email protected]>
Signed-off-by: Johannes Schindelin <[email protected]>
  • Loading branch information
gix authored and Git for Windows Build Agent committed Aug 15, 2016
1 parent 59ffabe commit 996ea54
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 996ea54

Please sign in to comment.