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

Re: global hooks

From
Jonathan del Strother <maillist@steelskies.com>
Date
Mar 20, 2008, 01:04 UTC
Message-ID
<57518fd10803191804g7b2ce670xe5d89b53c1bb8f6f@mail.gmail.com>
In-Reply-To
<1205942671.691.8.camel@omicron.ep.petrobras.com.br>

On Wed, Mar 19, 2008 at 4:04 PM, Victor Bogado da Silva Lins <victor@bogado.net> wrote:

Show 10 quoted lines
> 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?

I'd love to see something along these lines - at the moment, I have a precommit hook to drop textmate's caret metadata from the commit file, and it's a pain having to symlink it into every git repo.

Previous: Victor Bogado da Silva LinsNext: Junio C Hamano
Message 2 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.