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

Re: [PATCH/RFC] Add post-init hook

From
Alex Riesen <raa.lkml@gmail.com>
Date
Oct 9, 2008, 11:34 UTC
Message-ID
<81b0412b0810090434x41d11f18s4fd7a15d812b3ba3@mail.gmail.com>
In-Reply-To
<7viqs2ovte.fsf@gitster.siamese.dyndns.org>
2008/10/9 Junio C Hamano <gitster@pobox.com>:
Show 18 quoted lines
> Jeff King <peff@peff.net> 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/*...

Previous: Jeff King
Message 7 of 7 in “Add post-init hook”
  1. Add post-init hookJonathan del Strother, Oct 7, 2008
  2. Jeff KingOct 8, 2008
  3. Jonathan del StrotherOct 8, 2008
  4. Jeff KingOct 9, 2008
  5. Junio C HamanoOct 9, 2008
  6. Jeff KingOct 9, 2008
  7. Alex RiesenOct 9, 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.