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

Re: global hooks - once again

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Jul 2, 2010, 18:03 UTC
Message-ID
<20100702180355.GA1770@burratino>
In-Reply-To
<AANLkTikXJS5QCXMXgsOfkYn9cMBQV6o23tds5YG3A_OI@mail.gmail.com>
Eugene Sajine wrote:
> I have found a thread dated March 2008 about the subject, but there
> was no acceptable solution provided.
Link?
> 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?

Well, I like the idea[1]. The design issues are not very complicated; the main thing is to implement it.

 $ git grep -l -F -e 'hooks/' -- \*.c \*.sh \*.perl | egrep -v '^(contrib/(examples|hooks))|t/'
 builtin/commit.c
 builtin/init-db.c
 builtin/receive-pack.c
 git-am.sh
 git-cvsserver.perl
 git-rebase--interactive.sh
 git-rebase.sh
 run-command.c

Hope that helps, Jonathan

[1] e.g., for http://bugs.debian.org/514651
Previous: Eugene SajineNext: Eugene Sajine
Message 2 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.