summaryrefslogtreecommitdiff
path: root/compat/mingw.h
diff options
context:
space:
mode:
authorJohannes Sixt <j6t@kdbg.org>2010-04-11 20:40:12 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-04-11 20:48:46 (GMT)
commitf9a2743c3529baab6de650aa3e3eb96de9386fec (patch)
treec639acad982fb1fb3fa1f80915b6944361421a46 /compat/mingw.h
parenteee49b6ce4b7b3fed28794676c67ad3609f658ac (diff)
downloadgit-f9a2743c3529baab6de650aa3e3eb96de9386fec.zip
git-f9a2743c3529baab6de650aa3e3eb96de9386fec.tar.gz
git-f9a2743c3529baab6de650aa3e3eb96de9386fec.tar.bz2
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>
Diffstat (limited to 'compat/mingw.h')
-rw-r--r--compat/mingw.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/compat/mingw.h b/compat/mingw.h
index e254fb4..e0a6aba 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