Skip to content

Commit 3bd1361

Browse files
gixdscho
authored andcommitted
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 d32afb6 commit 3bd1361

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;
@@ -405,6 +409,7 @@ int main(void)
405409
}
406410
else if (!wcsicmp(basename, L"git-gui.exe")) {
407411
static WCHAR buffer[BUFSIZE];
412+
wait = 0;
408413
allocate_console = 1;
409414
if (!PathRemoveFileSpec(exepath)) {
410415
fwprintf(stderr,

0 commit comments

Comments
 (0)