From: Jonathan del Strother Date: Thu, 20 Mar 2008 01:04:33 GMT Subject: Re: global hooks 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 wrote: > 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.