on subtree checkout
I'm going to implement subtree checkout. The plan is to save "index prefix" in GIT_DIR/prefix and update git commands to use index prefix when accessing the index. If I'm heading a wrong way, stop me now.
Thanks
Signature · 1 line
Duy
söndagen den 24 februari 2008 skrev Nguyen Thai Ngoc Duy:
Quoted 3 lines
I'm going to implement subtree checkout. The plan is to save "index prefix" in GIT_DIR/prefix and update git commands to use index prefix when accessing the index. If I'm heading a wrong way, stop me now.
Make it multivalue as having more than one directory checked out is quite reasonable in for example Eclipse, where there are hundreds of plugins all listed at the top level, but you only need a checkout for those that you actually want to change. KDE would be another example where you want to mention multiple roots.
-- robin
Quoted 10 lines · Robin Rosenberg
söndagen den 24 februari 2008 skrev Nguyen Thai Ngoc Duy:
Quoted 3 lines
I'm going to implement subtree checkout. The plan is to save "index prefix" in GIT_DIR/prefix and update git commands to use index prefix when accessing the index. If I'm heading a wrong way, stop me now.
Make it multivalue as having more than one directory checked out is quite reasonable in for example Eclipse, where there are hundreds of plugins all listed at the top level, but you only need a checkout for those that you actually want to change. KDE would be another example where you want to mention multiple roots.
IMHO both in case of Eclipse plugins, and KDE modules/apps/whatever it would be much better to use submodules support than partial checkouts.
IMHO the best example of partial checkout workflow would be documentation writers or translators. You cannot put docs in separate submodule, as you want to have whole-tree change+documantation update commits.
Signature · 3 lines
Jakub Narebski Poland ShadeHawk on #git
söndagen den 24 februari 2008 skrev Jakub Narebski:
Quoted 13 lines
Quoted 10 lines · Robin Rosenberg
söndagen den 24 februari 2008 skrev Nguyen Thai Ngoc Duy:
Quoted 3 lines
I'm going to implement subtree checkout. The plan is to save "index prefix" in GIT_DIR/prefix and update git commands to use index prefix when accessing the index. If I'm heading a wrong way, stop me now.
Make it multivalue as having more than one directory checked out is quite reasonable in for example Eclipse, where there are hundreds of plugins all listed at the top level, but you only need a checkout for those that you actually want to change. KDE would be another example where you want to mention multiple roots.
Quoted 3 lines
IMHO both in case of Eclipse plugins, and KDE modules/apps/whatever it would be much better to use submodules support than partial checkouts.
400 submodules... noway.
-- robin
Quoted 14 lines · Robin Rosenberg
söndagen den 24 februari 2008 skrev Jakub Narebski:
Quoted 13 lines
Quoted 11 lines · Robin Rosenberg
söndagen den 24 februari 2008 skrev Nguyen Thai Ngoc Duy:
Quoted 3 lines
I'm going to implement subtree checkout. The plan is to save "index prefix" in GIT_DIR/prefix and update git commands to use index prefix when accessing the index. If I'm heading a wrong way, stop me now.
Make it multivalue as having more than one directory checked out is quite reasonable in for example Eclipse, where there are hundreds of plugins all listed at the top level, but you only need a checkout for those that you actually want to change. KDE would be another example where you want to mention multiple roots.
Quoted 5 lines
Quoted 3 lines
IMHO both in case of Eclipse plugins, and KDE modules/apps/whatever it would be much better to use submodules support than partial checkouts.
400 submodules... noway.
Way.
IHMO rule of thumb is: use submodules support if projects are independent, or at least largely independent.
Signature · 2 lines
Jakub Narebski Poland
Quoted 3 lines · Nguyen Thai Ngoc Duy
I'm going to implement subtree checkout. The plan is to save "index prefix" in GIT_DIR/prefix and update git commands to use index prefix when accessing the index. If I'm heading a wrong way, stop me now.
If I remember correctly previous trials to implement "partial checkout" ("subtree checkout") feature, or at least discussions about it, used index extension.
As far as I can see the problem lies in merging...
Signature · 3 lines
Jakub Narebski Poland ShadeHawk on #git
Quoted 7 lines · Jakub Narebski
Quoted 3 lines · Nguyen Thai Ngoc Duy
I'm going to implement subtree checkout. The plan is to save "index prefix" in GIT_DIR/prefix and update git commands to use index prefix when accessing the index. If I'm heading a wrong way, stop me now.
Quoted 5 lines
If I remember correctly previous trials to implement "partial checkout" ("subtree checkout") feature, or at least discussions about it, used index extension.
As far as I can see the problem lies in merging...
Can you elaborate? I'm really noob at merging.
Quoted 5 lines
--
Jakub Narebski
Poland
ShadeHawk on #git
Signature · 1 line
Duy
Quoted 9 lines · Nguyen Thai Ngoc Duy
Quoted 6 lines · Jakub Narebski
Quoted 1 line · Nguyen Thai Ngoc Duy
I'm going to implement subtree checkout. [...]
As far as I can see the problem lies in merging...
Can you elaborate? I'm really noob at merging.
What to do if when merging, or rebasing, there is conflict _outside_ checked out subtree?
Signature · 2 lines
Jakub Narebski Poland
Quoted 5 lines · Jakub Narebski
Quoted 4 lines · Nguyen Thai Ngoc Duy
Quoted 3 lines · Jakub Narebski
"Nguyen Thai Ngoc Duy" <[email protected]> writes:
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
I'm going to implement subtree checkout. [...]
As far as I can see the problem lies in merging...
Can you elaborate? I'm really noob at merging.
What to do if when merging, or rebasing, there is conflict _outside_ checked out subtree?
I suppose you have to forbid merges where anything non-trivial happens outside the tree (i.e. allow it only if the set of renamed or changed files is disjoint outside the tree, or only if only one of the branches to merge have changes outside the tree).
That's probably not such a big limitation in practice for the user, since by definition the user won't modify the files outside its tree, so he can at least still merge with the branch he branched from.
I can see another problem: partial checkout is really interesting only if you can do a partial clone ("partial" here in the sense "subtree"). Otherwise, your .git/ still eats your disk space and "clone" still needs your bandwidth for something you won't use.
Signature · 1 line
Matthieu
söndagen den 24 februari 2008 skrev Matthieu Moy:
Quoted 4 lines
I suppose you have to forbid merges where anything non-trivial happens outside the tree (i.e. allow it only if the set of renamed or changed files is disjoint outside the tree, or only if only one of the branches to merge have changes outside the tree).
One still has to allow it, maybe forcing a bigger checkout in those cases.
Quoted 3 lines
That's probably not such a big limitation in practice for the user, since by definition the user won't modify the files outside its tree, so he can at least still merge with the branch he branched from.
Partial checkout is for convenience and speed of worktree operations as
I see it. Other people could have other reasons for it. Branch switching takes a lot of time with big repos, same thing with git status, add -u etc. Restricting the worktree scan for uninteresting parts speeds things up.
Quoted 4 lines
I can see another problem: partial checkout is really interesting only if you can do a partial clone ("partial" here in the sense "subtree"). Otherwise, your .git/ still eats your disk space and "clone" still needs your bandwidth for something you won't use.
Better and more of "global" operations on repos with submodules might make them more bearable, and maybe even convenient, for example doing a git diff over a set of submodules detecting renames between submodules.
-- robin
Hi,
Quoted 3 lines · Nguyen Thai Ngoc Duy
I'm going to implement subtree checkout. The plan is to save "index prefix" in GIT_DIR/prefix and update git commands to use index prefix when accessing the index. If I'm heading a wrong way, stop me now.
As I wrote a long time ago already, I think the correct approach would be to reuse the code for the core.ignoreStat feature.
But I agree with others that you should think about sane implementations of rebase/merge with partial checkouts.
Ciao,
Dscho
Quoted 9 lines · Johannes Schindelin
Hi,
Quoted 3 lines · Nguyen Thai Ngoc Duy
I'm going to implement subtree checkout. The plan is to save "index prefix" in GIT_DIR/prefix and update git commands to use index prefix when accessing the index. If I'm heading a wrong way, stop me now.
Quoted 5 lines
As I wrote a long time ago already, I think the correct approach would be to reuse the code for the core.ignoreStat feature.
But I agree with others that you should think about sane implementations of rebase/merge with partial checkouts.
I, too, was shortly going to attempt a partial checkout/clone implementation. The intended context of my implementation was similar to the KDE scenario in that you might only care about /pkgA and /pkgB, so changes to /pkgC are usually irrelevant and independent to your work-flow, so I was planning to assume a simplistic "theirs" merge strategy for /pkgC, etc.
Dave.
Hi,
Quoted 6 lines · David Symonds
Quoted 3 lines · Johannes Schindelin
But I agree with others that you should think about sane implementations of rebase/merge with partial checkouts.
Quoted 6 lines
I, too, was shortly going to attempt a partial checkout/clone implementation. The intended context of my implementation was similar to the KDE scenario in that you might only care about /pkgA and /pkgB, so changes to /pkgC are usually irrelevant and independent to your work-flow, so I was planning to assume a simplistic "theirs" merge strategy for /pkgC, etc.
That might work for the people who have partial checkouts. But I see a lot of problems looming there: just imagine a documenter rebased on top of 'master', and _then_ on top of a branch by another documenter, which is newer with respect to documentation, but older with respect to the code.
It is _really_ easy to break code if you have no intention to test the result of a merge, _especially_ so when it is a "theirs" strategy.
Ciao,
Dscho