]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'ar/config-hooks' into ar/config-hook-cleanups
authorJunio C Hamano <gitster@pobox.com>
Mon, 9 Mar 2026 20:07:50 +0000 (13:07 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 9 Mar 2026 20:07:50 +0000 (13:07 -0700)
* ar/config-hooks: (21 commits)
  builtin/receive-pack: avoid spinning no-op sideband async threads
  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
  receive-pack: convert receive hooks to hook API
  receive-pack: convert update hooks to new API
  run-command: poll child input in addition to output
  hook: add jobs option
  reference-transaction: use hook API instead of run-command
  transport: convert pre-push to hook API
  hook: allow separate std[out|err] streams
  hook: convert 'post-rewrite' hook in sequencer.c to hook API
  hook: provide stdin via callback
  run-command: add stdin callback for parallelization
  run-command: add helper for pp child states
  ...

1  2 
builtin/receive-pack.c
git.c
refs.c
repository.c
repository.h
run-command.c
sequencer.c
transport.c

Simple merge
diff --cc git.c
index 744cb6527e065e262989d9cd464b476e084e008a,a9e462ee3228f944d9a7e820bd5aa39e45cc6ae6..6480ff8373d7e668e6388474b5c87ef1c94ba08d
--- 1/git.c
--- 2/git.c
+++ b/git.c
@@@ -586,8 -586,7 +586,8 @@@ static struct cmd_struct commands[] = 
        { "grep", cmd_grep, RUN_SETUP_GENTLY },
        { "hash-object", cmd_hash_object },
        { "help", cmd_help },
-       { "hook", cmd_hook, RUN_SETUP },
 +      { "history", cmd_history, 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 },
diff --cc refs.c
Simple merge
diff --cc repository.c
Simple merge
diff --cc repository.h
Simple merge
diff --cc run-command.c
Simple merge
diff --cc sequencer.c
Simple merge
diff --cc transport.c
Simple merge