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

Re: Template files location

From
A Large Angry SCM <gitzilla@gmail.com>
Date
Aug 5, 2005, 17:50 UTC
Message-ID
<42F3A6E5.2070502@gmail.com>
In-Reply-To
<7vpsssjnld.fsf@assigned-by-dhcp.cox.net>

Junio C Hamano wrote: ...

Show 9 quoted lines
> If the template files are to become something that always have
> to exist, /etc first and then falling back on /usr/share would
> make a lot of sense.  But as Johannes Schindelin correctly
> argued against the "Use the template mechanism to set up refs/
> hierarchy as well." patch [*2*], I think git-init-db should work
> when there is no template directory.  In other words, its
> primary purpose is to help local project administrators ensure
> newly created repositories have hooks and probably info/exclude
> that they recommend to the project members.
So templates are project specific.
Show 6 quoted lines
> The reason to have a sample one shipped as part of the core
> package is just to help newbies --- they would get a boilerplate
> hooks/update that explains how they can set it up when they do
> git-init-db even when they do not have their own customized set
> of templates yet.  For this kind of use, I do not think one
> default falling back to another is needed.

Shipping samples with the plumbing makes sense, especially when the documentation in is insufficient. But installing the samples as part of the default install process seems less than desirable. Or, alternately, install the samples in with the documentation as (non-executable) examples.

...
Show 10 quoted lines
> *1* This would probably break Linus, myself and others ---
> everybody has to say "make prefix=$HOME", so I do not think I am
> actually going to do it any time soon, if ever.
> 
> Having prefix=/usr/local as default only helps people who are
> installing system-wide from the source, and nobody else.  People
> who are writing spec.in and/or debian/rules need to override it
> to prefix=/usr anyway, and it forces people who are installing
> to their home to say prefix=$HOME/.  I suspect it is an inertia
> from the good old days when nobody used binary distributions.

Rather than changing the default install location in such a way as to make half the user unhappy, make everybody (un)happy by removing the default and forcing it to be specified when make is executed.

Previous: Junio C HamanoNext: Matthias Urlichs
Message 3 of 5 in “Template files location”
  1. Petr BaudisAug 5, 2005
  2. Junio C HamanoAug 5, 2005
  3. A Large Angry SCMAug 5, 2005
  4. Matthias UrlichsAug 10, 2005
  5. Petr BaudisAug 9, 2005

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.