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

Re: [PATCH v2] docs: document core.hooksPath=/dev/null

From
Derrick Stolee <stolee@gmail.com>
Date
Apr 17, 2025, 00:25 UTC
Message-ID
<9e14443c-e549-46e1-9fbf-ee72800e6944@gmail.com>
In-Reply-To
<BD8FCCB1-C97D-4057-982E-93A7F8B01AB9@gmail.com>
On 4/16/2025 12:53 PM, Lucas Seiki Oshiro wrote:
Show 6 quoted lines
> Hi!
> 
>> +You can also disable all hooks entirely by setting `core.hooksPath`
>> +to `/dev/null`.
> 
> Personally I think it would be better to focus on the non-expert user,

I absolutely want this to be targeted for expert users, so users self- select themselves into the risk of what happens when disabling hooks. This is a "there be dragons here" kind of warning, implying that you better know what you're doing if you are messing with hook paths.

Thanks, -Stolee

Previous: Lucas Seiki OshiroNext: brian m. carlson
Message 14 of 17 in “git: add --no-hooks global option”
  1. git: add --no-hooks global optionDerrick Stolee via GitGitGadget, Apr 3, 2025
  2. brian m. carlsonApr 3, 2025
  3. Derrick StoleeApr 4, 2025
  4. Phillip WoodApr 4, 2025
  5. Derrick StoleeApr 14, 2025
  6. Phillip WoodApr 16, 2025
  7. Junio C HamanoApr 16, 2025
  8. Derrick StoleeApr 16, 2025
  9. Lucas Seiki OshiroApr 14, 2025
  10. brian m. carlsonApr 14, 2025
  11. D. Ben KnobleApr 11, 2025
  12. docs: document core.hooksPath=/dev/nullDerrick Stolee via GitGitGadget, Apr 16, 2025
  13. Lucas Seiki OshiroApr 16, 2025
  14. Derrick StoleeApr 17, 2025
  15. brian m. carlsonApr 17, 2025
  16. Junio C HamanoApr 17, 2025
  17. Lucas Seiki OshiroApr 17, 2025

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.