]> git.ipfire.org Git - thirdparty/git.git/commit - compat/mingw.c
Windows: start_command: Support non-NULL dir in struct child_process
authorJohannes Sixt <j6t@kdbg.org>
Sun, 11 Apr 2010 20:40:12 +0000 (22:40 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 11 Apr 2010 20:48:46 +0000 (13:48 -0700)
commitf9a2743c3529baab6de650aa3e3eb96de9386fec
treec639acad982fb1fb3fa1f80915b6944361421a46
parenteee49b6ce4b7b3fed28794676c67ad3609f658ac
Windows: start_command: Support non-NULL dir in struct child_process

A caller of start_command can set the member 'dir' to a directory to
request that the child process starts with that directory as CWD. The first
user of this feature was added recently in eee49b6 (Teach diff --submodule
and status to handle .git files in submodules).

On Windows, we have been lazy and had not implemented support for this
feature, yet. This fixes the shortcoming.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/mingw.c
compat/mingw.h
run-command.c