Thread (34 messages) flat view 34 messages, 6 authors, 2016-08-11

Re: [RFC] Submodules in GIT

From: Andy Parkins <hidden>
Date: 2016-08-11 19:23:40

On Thursday 2006 November 30 15:50, Andreas Ericsson wrote:
quoted
Obviously, this is grossly simplified.  It also requires that HEAD be
allowed to be an arbitrary commit rather than a branch, but that's
already been generally agreed upon as a good thing.
It has? We're not talking supermodule specific things anymore, are we?
Not entirely, although I think it's going to be handy for submodules.  It was 
in a thread about remotes branches.  By allowing checkout of any commit 
rather than only those that have a ref/heads/ entry, you effectively have a 
read-only checkout.  You obviously couldn't commit to a repository like this, 
because HEAD wouldn't point at anything that is changeable.  It would be very 
easy to just git-branch from there and start work though.

I think it's going to be necessary for the submodule work, because without it 
the supermodule will have to create it's own temporary branches in the 
submodule in order to checkout an arbitrary commit.


Andy

-- 
Dr Andy Parkins, M Eng (hons), MIEE
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help