git/list[1] front-page[2] threads[3] people[4] search[5] about
 

ab/config-based-hooks-1

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Oct 1, 2021, 15:07 UTC
Message-ID
<871r54rd9c.fsf@evledraar.gmail.com>
In-Reply-To
<xmqqh7e18soj.fsf@gitster.g>
On Thu, Sep 30 2021, Junio C Hamano wrote:
Show 11 quoted lines
> * ab/config-based-hooks-1 (2021-09-27) 8 commits
>  - hook-list.h: add a generated list of hooks, like config-list.h
>  - hook.c users: use "hook_exists()" instead of "find_hook()"
>  - hook.c: add a hook_exists() wrapper and use it in bugreport.c
>  - hook.[ch]: move find_hook() from run-command.c to hook.c
>  - Makefile: remove an out-of-date comment
>  - Makefile: don't perform "mv $@+ $@" dance for $(GENERATED_H)
>  - Makefile: stop hardcoding {command,config}-list.h
>  - Makefile: mark "check" target as .PHONY
>
>  Mostly preliminary clean-up in the hook API.

I think this has gotten some thorough review from René & Phillip at this point[1][2]. I think th consensus on the v2 is to just keep the "sed" invocation I have as-is.

As you know the greater configurable hook topic is pending on this moving forward, so starting to get at least some of it merged down before 2.34 would be great. I was hoping we'd have a release with at least the simpler hooks running via the new hook library (and perhaps the --stdin cases too).

1. https://lore.kernel.org/git/0e07cee4-079a-af12-880f-d4a99300df28@web.de/
2. https://lore.kernel.org/git/6e7d5945-d64f-9511-9668-b453c20c086c@gmail.com/
Previous: Ævar Arnfjörð Bjarmason
Message 15 of 15 in “What's cooking in git.git (Sep 2021, #09; Thu, 30)”
  1. Junio C HamanoOct 1, 2021
  2. en/removing-untracked-fixes [Was: Re: What's cooking in git.git (Sep 2021, #09; Thu, 30)]Elijah Newren, Oct 1, 2021
  3. Ævar Arnfjörð BjarmasonOct 1, 2021
  4. Junio C HamanoOct 1, 2021
  5. en/remerge-diff [Was: Re: What's cooking in git.git (Sep 2021, #09; Thu, 30)]Elijah Newren, Oct 1, 2021
  6. Jeff KingOct 1, 2021
  7. Ævar Arnfjörð BjarmasonOct 1, 2021
  8. ab/fsck-unexpected-typeÆvar Arnfjörð Bjarmason, Oct 1, 2021
  9. ab/parse-options-cleanupÆvar Arnfjörð Bjarmason, Oct 1, 2021
  10. ab/sanitize-leak-ci & more leak fixes soon-or-notÆvar Arnfjörð Bjarmason, Oct 1, 2021
  11. Jeff HostetlerOct 1, 2021
  12. ab/refs-errno-cleanupÆvar Arnfjörð Bjarmason, Oct 1, 2021
  13. ab/align-parse-options-help & ab/help-config-varsÆvar Arnfjörð Bjarmason, Oct 1, 2021
  14. ab/lib-subtestÆvar Arnfjörð Bjarmason, Oct 1, 2021
  15. ab/config-based-hooks-1Ævar Arnfjörð Bjarmason, Oct 1, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.