]> asedeno.scripts.mit.edu Git - git.git/blobdiff - run-command.h
Merge branch 'jc/remote'
[git.git] / run-command.h
index cbd7484a00387ad039f4b713469a0663ab7c0a69..7958eb1e0b7a927019460e06d7a01622eddf81df 100644 (file)
@@ -17,6 +17,7 @@ struct child_process {
        int in;
        int out;
        const char *dir;
+       const char *const *env;
        unsigned close_in:1;
        unsigned close_out:1;
        unsigned no_stdin:1;
@@ -35,4 +36,10 @@ int run_command(struct child_process *);
 int run_command_v_opt(const char **argv, int opt);
 int run_command_v_opt_cd(const char **argv, int opt, const char *dir);
 
+/*
+ * env (the environment) is to be formatted like environ: "VAR=VALUE".
+ * To unset an environment variable use just "VAR".
+ */
+int run_command_v_opt_cd_env(const char **argv, int opt, const char *dir, const char *const *env);
+
 #endif