From f9a2743c3529baab6de650aa3e3eb96de9386fec Mon Sep 17 00:00:00 2001 From: Johannes Sixt Date: Sun, 11 Apr 2010 22:40:12 +0200 Subject: 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 Signed-off-by: Junio C Hamano --- compat/mingw.h | 1 + 1 file changed, 1 insertion(+) (limited to 'compat/mingw.h') diff --git a/compat/mingw.h b/compat/mingw.h index e254fb4e06..e0a6abac51 100644 --- a/compat/mingw.h +++ b/compat/mingw.h @@ -223,6 +223,7 @@ int mingw_utime(const char *file_name, const struct utimbuf *times); #define utime mingw_utime pid_t mingw_spawnvpe(const char *cmd, const char **argv, char **env, + const char *dir, int fhin, int fhout, int fherr); void mingw_execvp(const char *cmd, char *const *argv); #define execvp mingw_execvp -- cgit v1.2.3