From: Junio C Hamano <junkio@cox.net>
To: git@vger.kernel.org
Cc: barkalow@iabervon.org, Johannes Schindelin <Johannes.Schindelin@gmx.de>
Subject: Re: [PATCH] Use the template mechanism to set up refs/ hierarchy as well.
Date: Thu, 04 Aug 2005 17:20:25 -0700 [thread overview]
Message-ID: <7vll3hqlo6.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: Pine.LNX.4.62.0508041804120.23721@iabervon.org
barkalow@iabervon.org writes:
> ... I seem to recall a patch to create subdirectories of
> .git/refs on demand (needed for tags/v99/1). I'd say just
> .git/objects/(everything), .git/refs, and .git/info.
Having thought about this a bit more, I am inclined to drop
this. I see the template mechanism to be something that lets
site and project policy makers set up the repositories to suit
their taste, by having their users point their own template
directory via the GIT_TEMPLATE_DIRECTORY environment variable.
How $GIT_DIR/refs/heads/ and $GIT_DIR/refs/tags/ are used are
quite deeply ingrained in the core tools, and there is no point
pretending as if they can be overridden; they are not.
As Daniel says, refs/*/ are created mostly on-demand [*1*], so
it is not strictly necessary to create "heads" and "tags"
upfront, but they are so basic that I'd feel comfortable to keep
them part of what are done by git-init-db.
[Footnote]
*1* I fixed one in receive-pack recently, but please fix things
if you find any of the core tools assume that the leading paths
already exist.
prev parent reply other threads:[~2005-08-05 0:20 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-03 6:28 [PATCH] Use the template mechanism to set up refs/ hierarchy as well Junio C Hamano
2005-08-04 18:41 ` Johannes Schindelin
2005-08-04 19:59 ` Junio C Hamano
2005-08-04 20:19 ` Johannes Schindelin
2005-08-04 20:50 ` Junio C Hamano
2005-08-04 21:13 ` Johannes Schindelin
2005-08-04 21:35 ` Junio C Hamano
2005-08-05 0:35 ` Johannes Schindelin
2005-08-04 22:08 ` barkalow
2005-08-05 0:20 ` Junio C Hamano [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7vll3hqlo6.fsf@assigned-by-dhcp.cox.net \
--to=junkio@cox.net \
--cc=Johannes.Schindelin@gmx.de \
--cc=barkalow@iabervon.org \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox