]> git.ipfire.org Git - thirdparty/git.git/commit
hook: allow event = "" to overwrite previous values
authorAdrian Ratiu <adrian.ratiu@collabora.com>
Wed, 18 Feb 2026 22:23:50 +0000 (00:23 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 19 Feb 2026 21:23:41 +0000 (13:23 -0800)
commitd084fa2a915784d65257fbaff43f00b3ea5c8a44
treea21cc77ed137445de0ff142b3c609a1585f4c643
parent1ecce722cdb9c42dd4c69e45e02cb850cd558ef2
hook: allow event = "" to overwrite previous values

Add the ability for empty events to clear previously set multivalue
variables, so the newly added "hook.*.event" behave like the other
multivalued keys.

Suggested-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Adrian Ratiu <adrian.ratiu@collabora.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config/hook.adoc
hook.c
t/t1800-hook.sh