From: Alex Riesen Date: Thu, 09 Oct 2008 11:34:27 GMT Subject: Re: [PATCH/RFC] Add post-init hook Message-ID: <81b0412b0810090434x41d11f18s4fd7a15d812b3ba3@mail.gmail.com> In-Reply-To: <7viqs2ovte.fsf@gitster.siamese.dyndns.org> 2008/10/9 Junio C Hamano : > Jeff King writes: >> On Wed, Oct 08, 2008 at 09:16:56AM +0100, Jonathan del Strother wrote: >> ... >>> I want symlinks so I only have to edit my hooks in one place whenever >>> I change them) >> >> This makes a lot of sense to me as a best-practice. I wonder if we >> wouldn't do better to add a core.symlink-templates option? > > AFAIR, "git init" copies symlinks in templates as symlinks, so I do not > see why you would even want to have such an option. > > Wouldn't it be better if users and installations with such a special > set of templates specified by core.template or --template prepare a > template directory with files and symbolic links of their liking? If > they want some hooks to point at the latest copy of installation specific > standard hook script, templates/hooks/$that_hook can be a symlink to the > real location, no? It will be replaced with a file next time you update your git installation. Seems like we need ~/.gitconfig/*...