mirror of
https://github.com/git/git.git
synced 2026-01-28 11:32:24 +00:00
git-wrapper: let git gui run in the background
This fixes https://github.com/git-for-windows/git/issues/172. Signed-off-by: Nico Rieck <nico.rieck@gmail.com> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
committed by
Johannes Schindelin
parent
d16513f1f8
commit
c2b4f19dff
@@ -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;
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user