]> git.ipfire.org Git - thirdparty/git.git/commit
hook: add "git hook list" command
authorEmily Shaffer <emilyshaffer@google.com>
Wed, 18 Feb 2026 22:23:47 +0000 (00:23 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 19 Feb 2026 21:23:41 +0000 (13:23 -0800)
commit9fdaa6788924d4bb5ffc3a5908dae8a50e072f77
tree326b5d2e0fc66a44080600b9f93c17f71ca3d778
parent4a36cb4c9f0f508db2e5dda75673e0d4b1242007
hook: add "git hook list" command

The previous commit introduced an ability to run multiple commands for
hook events and next commit will introduce the ability to define hooks
from configs, in addition to the "traditional" hooks from the hookdir.

Introduce a new command "git hook list" to make inspecting hooks easier
both for users and for the tests we will add.

Further commits will expand on this, e.g. by adding a -z output mode.

Signed-off-by: Emily Shaffer <emilyshaffer@google.com>
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
hook.c
hook.h
t/t1800-hook.sh