diff options
| author | Junio C Hamano <gitster@pobox.com> | 2026-03-10 14:23:18 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-03-10 14:23:18 -0700 |
| commit | f330d46deeb143b6109143f37a47d025475d11d6 (patch) | |
| tree | c2b93a2ec12c0e9c8227be1a362c0fd261d6376a /git.c | |
| parent | 9a8aebae972de22ecd5adb92fec9d77147949c8a (diff) | |
| parent | ec1c4d974ac74afb4f0574d29f7bbb30c1c46431 (diff) | |
| download | git-f330d46deeb143b6109143f37a47d025475d11d6.tar.xz | |
Merge branch 'ar/config-hooks'
Allow hook commands to be defined (possibly centrally) in the
configuration files, and run multiple of them for the same hook
event.
* ar/config-hooks:
hook: add -z option to "git hook list"
hook: allow out-of-repo 'git hook' invocations
hook: allow event = "" to overwrite previous values
hook: allow disabling config hooks
hook: include hooks from the config
hook: add "git hook list" command
hook: run a list of hooks to prepare for multihook support
hook: add internal state alloc/free callbacks
Diffstat (limited to 'git.c')
| -rw-r--r-- | git.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -587,7 +587,7 @@ static struct cmd_struct commands[] = { { "hash-object", cmd_hash_object }, { "help", cmd_help }, { "history", cmd_history, RUN_SETUP }, - { "hook", cmd_hook, RUN_SETUP }, + { "hook", cmd_hook, RUN_SETUP_GENTLY }, { "index-pack", cmd_index_pack, RUN_SETUP_GENTLY | NO_PARSEOPT }, { "init", cmd_init_db }, { "init-db", cmd_init_db }, |
