Re: [RFC] Submodules in GIT
- From
Martin Waitz <tali@admingilde.org>
- Date
- Dec 2, 2006, 20:21 UTC
- Message-ID
- <20061202202103.GS18810@admingilde.org>
- In-Reply-To
- <Pine.LNX.4.64.0612021144520.3476@woody.osdl.org>
hoi :)
On Sat, Dec 02, 2006 at 11:52:13AM -0800, Linus Torvalds wrote:
Show 8 quoted lines
> I don't think it would be wrong at all to have a "link object" type, and > have the "link" tree entry actually point to that "link object" instead of > pointing directly to the commit in the submodule. > > And yes, that extra indirection would allow for more flexibility (the > "link object" can contain comments about the particular version used, > pointers to where you can get it - whether human-readable or strictly > meant for automation - etc etc).
What makes a submodule so special that now we suddenly have to store those stuff in the object database?
Storing a fetch location would grossly contradict the distributed nature of git. I really do not see _any_ reason to store more information than the commit sha1 of the submodule.
-- Martin Waitz