]> Kevux Git Server - rit/commit
hook: add -z option to "git hook list"
authorAdrian Ratiu <adrian.ratiu@collabora.com>
Wed, 18 Feb 2026 22:23:52 +0000 (00:23 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 19 Feb 2026 21:24:57 +0000 (13:24 -0800)
commit4b12cd3ae3acbc819189758d09f9c983bde16040
tree7bbe9a0500548f5285e87329c27298bc10b4218b
parentb51e238ddf896439d2746b883d892f8f9bba649f
hook: add -z option to "git hook list"

Add a NUL-terminate mode to git hook list, just in case hooks are
configured with weird characters like newlines in their names.

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/git-hook.adoc
builtin/hook.c
t/t1800-hook.sh