Merge branch 'ab/config-based-hooks-base' into seen origin/seen
authorJunio C Hamano <gitster@pobox.com>
Sat, 19 Jun 2021 07:30:26 +0000 (16:30 +0900)
committerJunio C Hamano <gitster@pobox.com>
Sat, 19 Jun 2021 07:30:26 +0000 (16:30 +0900)
commit33bc620fd1829b92a6671b6bd65ee357447aa964
treef4aa6db549321c9fe182cffbb905ab85da689e3e
parentba070a3a51cd0c29fae9ea7d3cd98b403bd4d47b
parentd4102becdcf3b3599bd552f457fe45d36db6dc8a
Merge branch 'ab/config-based-hooks-base' into seen

Restructuring of (a subset of) Emily's config-based-hooks series,
to demonstrate that a series can be presented as a more logical and
focused progression.

* ab/config-based-hooks-base: (30 commits)
  hook-list.h: add a generated list of hooks, like config-list.h
  hooks: fix a TOCTOU in "did we run a hook?" heuristic
  receive-pack: convert receive hooks to hook.h
  post-update: use hook.h library
  receive-pack: convert 'update' hook to hook.h
  hooks: allow callers to capture output
  run-command: allow capturing of collated output
  reference-transaction: use hook.h to run hooks
  transport: convert pre-push hook to use config
  hook: convert 'post-rewrite' hook in sequencer.c to hook.h
  hook: provide stdin by string_list or callback
  run-command: add stdin callback for parallelization
  am: convert 'post-rewrite' hook to hook.h
  hook: support passing stdin to hooks
  run-command: allow stdin for run_processes_parallel
  run-command: remove old run_hook_{le,ve}() hook API
  receive-pack: convert push-to-checkout hook to hook.h
  read-cache: convert post-index-change hook to use config
  commit: use hook.h to execute hooks
  git-p4: use 'git hook' to run hooks
  ...
21 files changed:
.gitignore
Documentation/githooks.txt
Makefile
builtin.h
builtin/am.c
builtin/checkout.c
builtin/commit.c
builtin/gc.c
builtin/submodule--helper.c
commit.c
git-p4.py
git-send-email.perl
git.c
read-cache.c
refs.c
run-command.c
run-command.h
sequencer.c
submodule.c
t/t9001-send-email.sh
transport.c