Repository navigation
pr-2272/thomasbachem/hook-event-enabled-hookdir-v1
tagged this
20 Oct 18:19
Two small fixes for hook configuration. With the first, hook.pre-commit.enabled=false also stops the pre-commit hook in the hooks directory, as the documentation says. With the second, hook.*.enabled and hook.*.parallel can be given without a value, which means true, as for any other boolean. Thomas Bachem (2): hook: honor hook.<event>.enabled for the hookdir hook hook: accept .enabled and .parallel given without a value builtin/hook.c | 6 ++++-- hook.c | 17 +++++++++++------ hook.h | 8 +++++++- t/t1800-hook.sh | 51 +++++++++++++++++++++++++++++++++++++++++++++++-- 4 files changed, 71 insertions(+), 11 deletions(-) base-commit: 6de20f6092dcf9bdb1c8efe03db4b70c82b423dd Submitted-As: https://lore.kernel.org/git/pull.2272.git.1792520353.gitgitgadget@gmail.com