From: Andy Parkins <andyparkins@gmail.com>
To: git@vger.kernel.org
Cc: Junio C Hamano <junkio@cox.net>
Subject: Re: git submodule support feedback
Date: Thu, 26 Apr 2007 22:49:55 +0100 [thread overview]
Message-ID: <200704262249.57238.andyparkins@gmail.com> (raw)
In-Reply-To: <7vfy6mstsd.fsf@assigned-by-dhcp.cox.net>
On Thursday 2007, April 26, Junio C Hamano wrote:
> I think older tools do not expect to find anything but tree or
> blob in a tree object to begin with. Now your experimental
> repository has a commit, which they do not expect to see and I
> think they will be unhappy.
>
> If you replace the commit objects in your trees with a new type
> of object 'gitlink', your older tools will have exactly the same
> problem, won't they?
I'm not sure, what I imagined was at the moment we have
160000 commit 0fbbf28b0eefb1546d02aabb43fa2de9b9f6d5f2 submodule
The hash here is a commit hash in another repository so obviously all
the git tools from older versions instantly bomb out saying they can't
find that object.
If, on the other hand we had
160000 blob b1819880ec7ead7354c6d1c650ea5faf9c6d629b submodule
$ git-cat-file -p b1819880ec7ead7354c6d1c650ea5faf9c6d629b
0fbbf28b0eefb1546d02aabb43fa2de9b9f6d5f2
Obviously the current gitlink stuff would need rewriting to use this
extra layer of indirection, but all the old tools would just see this
as a blob and simply treat it as a file containing that hash.
I'm kind of hoping that older versions of git would fail gracefully on a
160000 file type. If that isn't the case, then this is no solution and
there'd be no point going to any effort.
Andy
--
Dr Andy Parkins, M Eng (hons), MIET
andyparkins@gmail.com
prev parent reply other threads:[~2007-04-26 21:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-26 11:38 git submodule support feedback Andy Parkins
2007-04-26 11:56 ` Marco Costalba
2007-04-26 12:08 ` Andy Parkins
2007-04-26 21:28 ` Andy Parkins
2007-04-26 20:59 ` David Lang
2007-04-26 21:35 ` Junio C Hamano
2007-04-26 21:49 ` Andy Parkins [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=200704262249.57238.andyparkins@gmail.com \
--to=andyparkins@gmail.com \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
/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).