]> Kevux Git Server - rit/commit
git hook run: add an --ignore-missing flag
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Wed, 22 Dec 2021 03:59:37 +0000 (04:59 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 7 Jan 2022 23:19:34 +0000 (15:19 -0800)
commit0d3979c175054187a4bd94dbbdc4f99300f7fc04
tree9e89dd54a2e0b2776d504de9ca9d9fb6a66c450d
parent1a3017d908824ab42ca7a5af7073f4cdc5c88fbf
git hook run: add an --ignore-missing flag

For certain one-shot hooks we'd like to optimistically run them, and
not complain if they don't exist.

This was already supported by the underlying hook.c library, but had
not been exposed via "git hook run". The command version of this will
be used by send-email in a subsequent commit.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Reviewed-by: Emily Shaffer <emilyshaffer@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-hook.txt
builtin/hook.c
t/t1800-hook.sh