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

global hooks - once again

From
ESEugene Sajine <euguess@gmail.com>
Date
Jul 2, 2010, 16:23 UTC
Message-ID
<AANLkTikXJS5QCXMXgsOfkYn9cMBQV6o23tds5YG3A_OI@mail.gmail.com>

I have found a thread dated March 2008 about the subject, but there was no acceptable solution provided. Template directory doesn't seem to be interesting.

Is there a better way now?

If there is no better way now Is it possible to create a git config property specifying where the global hooks folder is and then look for hooks there first and then in the repo or vice versa?

For example, so i could say $ git config --global hooks.dir ~/git/hooks

It could even attempt to create the specified folder and create necessary structure in it like below if necesary /pre-commit /post-commit /pre-rebase /post-rebase

etc...

Thanks, Eugene

Next: Jonathan Nieder
Message 1 of 14 in “global hooks - once again”
  1. Eugene SajineJul 2, 2010
  2. Jonathan NiederJul 2, 2010
  3. Eugene SajineJul 2, 2010
  4. Junio C HamanoJul 2, 2010
  5. Eugene SajineJul 2, 2010
  6. Peter KjellerstedtJul 5, 2010
  7. Alex RiesenJul 6, 2010
  8. Eugene SajineJul 6, 2010
  9. Peter KjellerstedtJul 6, 2010
  10. demerphqJul 6, 2010
  11. Eugene SajineJul 6, 2010
  12. Eugene SajineJul 6, 2010
  13. demerphqJul 6, 2010
  14. Jonathan NiederJul 2, 2010

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.