diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-01-23 21:19:25 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-01-23 21:19:25 -0800 |
commit | bb9a69694f27aa299777c679979f75bdef75735d (patch) | |
tree | f00e9f412cd91c4f2b5aa355d68bc0b501ff8ee3 /run-command.h | |
parent | 86db7464496ca82488071c7a9e7e57eff07cd900 (diff) | |
parent | 87c86dd14abe8db7d00b0df5661ef8cf147a72a3 (diff) | |
download | git-bb9a69694f27aa299777c679979f75bdef75735d.tar.gz |
Merge branch 'as/pre-push-hook'
Add an extra hook so that "git push" that is run without making
sure what is being pushed is sane can be checked and rejected (as
opposed to the user deciding not pushing).
* as/pre-push-hook:
Add sample pre-push hook script
push: Add support for pre-push hooks
hooks: Add function to check if a hook exists
Diffstat (limited to 'run-command.h')
-rw-r--r-- | run-command.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/run-command.h b/run-command.h index 850c638f19..221ce33140 100644 --- a/run-command.h +++ b/run-command.h @@ -45,6 +45,7 @@ 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); extern int run_hook(const char *index_file, const char *name, ...); #define RUN_COMMAND_NO_STDIN 1 |