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

global hooks

From
Victor Bogado da Silva Lins <victor@bogado.net>
Date
Mar 19, 2008, 16:04 UTC
Message-ID
<1205942671.691.8.camel@omicron.ep.petrobras.com.br>

Hi, I made a prepare-commit-msg hook today, it basically appends the diff I am about to commit to the commented information that normally appears.

The problem is that if I want this hook in all projects I have, I have to copy that file to every single project I have. This is an error prone operation, not to mention a pain in the... .

SO my question is, is there a way to make that hook global to all projects? If not, would it be a good idea to allow this?

Next: Jonathan del Strother
Message 1 of 6 in “global hooks”
  1. Victor Bogado da Silva LinsMar 19, 2008
  2. Jonathan del StrotherMar 20, 2008
  3. Junio C HamanoMar 20, 2008
  4. Johan HerlandMar 20, 2008
  5. Ping YinMar 20, 2008
  6. Johan HerlandMar 20, 2008

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.