aboutsummaryrefslogtreecommitdiff
path: root/hook.c
diff options
context:
space:
mode:
authorAdrian Ratiu <adrian.ratiu@collabora.com>2026-03-25 21:54:58 +0200
committerJunio C Hamano <gitster@pobox.com>2026-03-25 14:00:46 -0700
commit2e5dbaff169dfb28fa8e8c4f992d8252a4ef1312 (patch)
treeac898f19282422a29f07124c4e3a53d9e265e42e /hook.c
parenta8b1ba86d494ea8825292c91c243e5d84fd7ee2c (diff)
downloadgit-2e5dbaff169dfb28fa8e8c4f992d8252a4ef1312.tar.xz
hook: make consistent use of friendly-name in docs
Both `name` and `friendly-name` is being used. Standardize on `friendly-name` for consistency since name is rather generic, even when used in the hooks namespace. Suggested-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: Adrian Ratiu <adrian.ratiu@collabora.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'hook.c')
-rw-r--r--hook.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hook.c b/hook.c
index 021110f216..dc0c3de667 100644
--- a/hook.c
+++ b/hook.c
@@ -112,7 +112,7 @@ static void list_hooks_add_default(struct repository *r, const char *hookname,
* Callback struct to collect all hook.* keys in a single config pass.
* commands: friendly-name to command map.
* event_hooks: event-name to list of friendly-names map.
- * disabled_hooks: set of friendly-names with hook.name.enabled = false.
+ * disabled_hooks: set of friendly-names with hook.<friendly-name>.enabled = false.
*/
struct hook_all_config_cb {
struct strmap commands;