diff options
| author | Junio C Hamano <gitster@pobox.com> | 2009-01-21 16:50:43 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2009-01-21 16:50:43 -0800 |
| commit | 1afcde6da1221bdb85a3630d995f9ca384042cb9 (patch) | |
| tree | 9a010c9a301e5574aacd6d56a48e9c18d9496bb0 /run-command.h | |
| parent | 35e6afd4c6bc73cba7bc279ff43b498389bf805a (diff) | |
| parent | 14e6298f1215da503f0f65b63e13d674dd781868 (diff) | |
| download | git-1afcde6da1221bdb85a3630d995f9ca384042cb9.tar.gz | |
Merge branch 'sb/hook-cleanup'
* sb/hook-cleanup:
run_hook(): allow more than 9 hook arguments
run_hook(): check the executability of the hook before filling argv
api-run-command.txt: talk about run_hook()
Move run_hook() from builtin-commit.c into run-command.c (libgit)
checkout: don't crash on file checkout before running post-checkout hook
Diffstat (limited to 'run-command.h')
| -rw-r--r-- | run-command.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/run-command.h b/run-command.h index a8b0c209e9..0211e1d471 100644 --- a/run-command.h +++ b/run-command.h @@ -49,6 +49,8 @@ int start_command(struct child_process *); int finish_command(struct child_process *); int run_command(struct child_process *); +extern int run_hook(const char *index_file, const char *name, ...); + #define RUN_COMMAND_NO_STDIN 1 #define RUN_GIT_CMD 2 /*If this is to be git sub-command */ #define RUN_COMMAND_STDOUT_TO_STDERR 4 |
