aboutsummaryrefslogtreecommitdiff
path: root/compat/mingw.h
diff options
context:
space:
mode:
authorJohannes Sixt <johannes.sixt@telecom.at>2007-12-04 12:38:32 +0100
committerJohannes Sixt <johannes.sixt@telecom.at>2008-06-23 13:40:30 +0200
commitf1a4dfb85a432ae338d162179eaac5d50154fbeb (patch)
treed354d2d9327d50623ed65c6782a51fc8f8a715d8 /compat/mingw.h
parent6072fc314e87d53bec7266df5b6c3db2c2c82829 (diff)
downloadgit-f1a4dfb85a432ae338d162179eaac5d50154fbeb.tar.gz
git-f1a4dfb85a432ae338d162179eaac5d50154fbeb.tar.xz
Windows: Wrap execve so that shell scripts can be invoked.
When an external git command is invoked, it can be a Bourne shell script. This patch looks into the command file to see whether it is one. In this case, the command line is rearranged to invoke the shell with the proper arguments. With this change, scripted git commands work. Command line arguments to those scripts cannot be complex (contain spaces or double-quotes), yet. Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Diffstat (limited to 'compat/mingw.h')
-rw-r--r--compat/mingw.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/compat/mingw.h b/compat/mingw.h
index a369ade9e..3ddef11ed 100644
--- a/compat/mingw.h
+++ b/compat/mingw.h
@@ -154,6 +154,9 @@ char *mingw_getcwd(char *pointer, int len);
int mingw_rename(const char*, const char*);
#define rename mingw_rename
+void mingw_execvp(const char *cmd, char *const *argv);
+#define execvp mingw_execvp
+
sig_handler_t mingw_signal(int sig, sig_handler_t handler);
#define signal mingw_signal