Skip to content

Commit dbcf442

Browse files
gixGit for Windows Build Agent
authored and
Git for Windows Build Agent
committed
git-wrapper: let git gui run in the background
This fixes #172. Signed-off-by: Nico Rieck <[email protected]> Signed-off-by: Johannes Schindelin <[email protected]>
1 parent d5de82d commit dbcf442

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

compat/win32/git-wrapper.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,10 @@ static LPWSTR fixup_commandline(LPWSTR exepath, LPWSTR *exep, int *wait,
163163
}
164164
wcscat(cmd, p);
165165
}
166+
167+
if (wargc > 1 && !wcscmp(wargv[1], L"gui"))
168+
*wait = 0;
169+
166170
LocalFree(wargv);
167171

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

0 commit comments

Comments
 (0)