From: Junio C Hamano Date: Thu, 09 Oct 2008 11:24:29 GMT Subject: Re: [PATCH/RFC] Add post-init hook Message-ID: <7viqs2ovte.fsf@gitster.siamese.dyndns.org> In-Reply-To: <20081009014146.GA14204@coredump.intra.peff.net> 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?