From: "H. Peter Anvin" <hpa@zytor.com>
To: Linus Torvalds <torvalds@osdl.org>
Cc: Johannes Schindelin <Johannes.Schindelin@gmx.de>, git@vger.kernel.org
Subject: Re: [RFC] Make grafts versionable
Date: Mon, 21 Nov 2005 13:41:10 -0800 [thread overview]
Message-ID: <43823EF6.6010302@zytor.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0511211326110.13959@g5.osdl.org>
Linus Torvalds wrote:
>
> However, there's one fundamental reason:
>
> - if you have a file in ".git", that implies that even a "raw git repo"
> would have versions matter, since technically such a file would be
> inside the "raw" part. And that I find to be confusing. One of the
> whole points of a raw git repo is that because it doesn't have anything
> that is version-controlled and checked out, none of the branches or
> tags are special, and nothing needs to be updated when you push to such
> a repo.
>
> Now, if you have files in .git, suddenly that fundamental nature of a
> raw repository is no longer clear.
>
Note that I didn't actually mean that they should necessarily represent
files in .git/. The point was more that if we wanted to have
version-controlled metadata, using .git/ as a namespace would be suitable.
In particular, I believe that if we ever do that, git should obtain this
metadata from the repository/object database.
> In general, making any internal git data versionable is very confusing. So
> you make the grafts file versionable - that suddenly means that different
> branches may have different parents for the same commit. And that
> depending on which branch you have checked out, git-fsck-cache may result
> in an error, or it may not. That's _nasty_, in my opinion.
>
> So I much prefer to say: everything under ".git" is not versionable, for
> the fundamental reason that the files under .git are "global" to that git
> repository.
>
> And I think .git/grafts in particular makes no sense to version.
>
> If you want to track a git "grafts" file, you can do it as another git
> repository and a symlink.
I fully concur with this (as I pointed out in my post, although perhaps
fuzzily.)
-hpa
next prev parent reply other threads:[~2005-11-21 21:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-21 20:54 [RFC] Make grafts versionable Johannes Schindelin
2005-11-21 21:04 ` H. Peter Anvin
2005-11-21 21:35 ` Linus Torvalds
2005-11-21 21:41 ` H. Peter Anvin [this message]
2005-11-22 0:37 ` Johannes Schindelin
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=43823EF6.6010302@zytor.com \
--to=hpa@zytor.com \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=torvalds@osdl.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;
as well as URLs for NNTP newsgroup(s).