Re: [RFC] Submodules in GIT

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jakub Narebski <jnareb@...>
Cc: <git@...>, Josef Weidendorfer <Josef.Weidendorfer@...>, R. Steve McKown <rsmckown@...>, Linus Torvalds <torvalds@...>
Date: Saturday, December 16, 2006 - 8:21 pm

On 12/16/06, Jakub Narebski <jnareb@gmail.com> wrote:

This is entirely an UI issue:

On 12/16/06, Torgil Svensson <torgil.svensson@gmail.com> wrote:



On 12/16/06, Jakub Narebski <jnareb@gmail.com> wrote:

Correct. Since the commit contains all the version information, the
following combinations should give the same information iff we keep
the commit in the database:
1. <sha1 of commit> + <sha1 of tree/blob>
2. <sha1 of commit> + <symlink to tree/blob>

I used the sha1 because I wanted them to behave exactly like
trees/blobs in the database for operations that can disregard the
commit info. Now, if we keep the commit in the database as Linus
suggests we can reach the target from there with a symlink. This would
be more readable but also cost a few object lookups extra iterating
over the symlink.



This would be a great feature! Will this conflict with path shortcuts?
If so, we might consider two types of objects: "link" which cannot
merge upstream and "module" which can merge upstream and contains a
.git object repository.

IMHO, "module" is a more intuitive name for specifying a
(functionality wise fully fledged) submodule with a repository inside.
"link" could be used for just mirroring a tree/blob. I'm not sure if a
separation is needed on a technical level.


Yes
Not yet


//Torgil
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC] Submodules in GIT, Jakub Narebski, (Sat Dec 16, 5:57 am)
Re: [RFC] Submodules in GIT, Torgil Svensson, (Sat Dec 16, 11:05 am)
Re: [RFC] Submodules in GIT, Jakub Narebski, (Sat Dec 16, 12:32 pm)
Re: [RFC] Submodules in GIT, Torgil Svensson, (Sat Dec 16, 8:21 pm)
Re: [RFC] Submodules in GIT, R. Steve McKown, (Mon Dec 18, 12:19 pm)
Re: [RFC] Submodules in GIT, Torgil Svensson, (Sat Dec 16, 11:38 am)
Re: [RFC] Submodules in GIT, Junio C Hamano, (Sat Dec 16, 6:25 am)