aboutsummaryrefslogtreecommitdiffstats
path: root/run-command.h
diff options
context:
space:
mode:
authorEmily Shaffer <emilyshaffer@google.com>2021-12-22 04:59:43 +0100
committerJunio C Hamano <gitster@pobox.com>2022-01-07 15:19:35 -0800
commit95ba86a203213fb828de096dc0dba18ce94598f7 (patch)
treeb1c1264b20286a56a6e43b4cfb7324ef378361c7 /run-command.h
parentreceive-pack: convert push-to-checkout hook to hook.h (diff)
downloadgit-95ba86a203213fb828de096dc0dba18ce94598f7.tar.gz
git-95ba86a203213fb828de096dc0dba18ce94598f7.zip
run-command: remove old run_hook_{le,ve}() hook API
The new hook.h library has replaced all run-command.h hook-related functionality. So let's delete this dead code. Signed-off-by: Emily Shaffer <emilyshaffer@google.com> Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Acked-by: Emily Shaffer <emilyshaffer@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'run-command.h')
-rw-r--r--run-command.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/run-command.h b/run-command.h
index 88a398c300..07bed6c31b 100644
--- a/run-command.h
+++ b/run-command.h
@@ -220,22 +220,6 @@ int finish_command_in_signal(struct child_process *);
*/
int run_command(struct child_process *);
-/**
- * Run a hook.
- * The first argument is a pathname to an index file, or NULL
- * if the hook uses the default index file or no index is needed.
- * The second argument is the name of the hook.
- * The further arguments correspond to the hook arguments.
- * The last argument has to be NULL to terminate the arguments list.
- * If the hook does not exist or is not executable, the return
- * value will be zero.
- * If it is executable, the hook will be executed and the exit
- * status of the hook is returned.
- * On execution, .stdout_to_stderr and .no_stdin will be set.
- */
-LAST_ARG_MUST_BE_NULL
-int run_hook_le(const char *const *env, const char *name, ...);
-
/*
* Trigger an auto-gc
*/