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

Re: [PATCH v2] Run global hooks from the directory at hooks.dir

From
Brian Collins <bricollins@gmail.com>
Date
Nov 8, 2010, 13:59 UTC
Message-ID
<AANLkTikJACZxf6socuvXFMu7WUZ0y+s0ZRA2kYEKb19q@mail.gmail.com>
In-Reply-To
<AANLkTi=kFuoaV5Ur_a7FJPg_oUs3svOpq=wEVhdpuoai@mail.gmail.com>
> I'm not in favor of this change, as a number of alternatives were
> suggested in the thread you cite (Gmane:
> http://thread.gmane.org/gmane.comp.version-control.git/150141).

The alternatives suggested need to be applied individually to each repository. This can be problematic because you may want repository-specific scripts as well. Then when you update your global hooks you have to deal with merging with your repository-specific scripts. Using templates is not ideal because it is system-wide and they still need to be renamed for every clone or init.

> A few hints, just in case you deploy this code:
Thanks, I have fixed those issues.
Previous: Brian CollinsNext: Jonathan Nieder
Message 5 of 6 in “Run global hooks from the directory at hooks.dir”
  1. Run global hooks from the directory at hooks.dirBrian Collins, Nov 8, 2010
  2. Johannes SixtNov 8, 2010
  3. Junio C HamanoNov 8, 2010
  4. Brian CollinsNov 9, 2010
  5. Brian CollinsNov 8, 2010
  6. Jonathan NiederNov 8, 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.