upload-pack: delegate rev walking in shallow fetch to pack-objects
[gitweb.git] / run-command.h
index 56491b9f2344541c02bd0da2928a535f11193bd8..6b985afd07a5b58ecadad8859ae90b3430ccb4c2 100644 (file)
@@ -38,13 +38,15 @@ struct child_process {
        unsigned silent_exec_failure:1;
        unsigned stdout_to_stderr:1;
        unsigned use_shell:1;
-       void (*preexec_cb)(void);
+       unsigned clean_on_exit:1;
 };
 
 int start_command(struct child_process *);
 int finish_command(struct child_process *);
 int run_command(struct child_process *);
 
+extern char *find_hook(const char *name);
+LAST_ARG_MUST_BE_NULL
 extern int run_hook(const char *index_file, const char *name, ...);
 
 #define RUN_COMMAND_NO_STDIN 1
@@ -52,6 +54,7 @@ extern int run_hook(const char *index_file, const char *name, ...);
 #define RUN_COMMAND_STDOUT_TO_STDERR 4
 #define RUN_SILENT_EXEC_FAILURE 8
 #define RUN_USING_SHELL 16
+#define RUN_CLEAN_ON_EXIT 32
 int run_command_v_opt(const char **argv, int opt);
 
 /*