OT: question about git submodules (wa: Re: Brief article on benchmarks of Python repository with leading DVCSen)
Alexander Belchenko
bialix at ukr.net
Wed Feb 11 10:38:24 GMT 2009
Stephen J. Turnbull пишет:
> Alexander Belchenko writes:
>
> > May I ask you about git submodules, the man page is not very clear in
> > one place. I'm working on bzr plugin that provides emulation of similar
> > workflow, so I'd like to understand git submodules better.
> >
> > Man page don't say it clear enough: can I use nested submodules?
> > I guess the answer is "yes" I'm just need to be sure.
>
> As far as I know nesting submodules is unsupported. I haven't tried
> it. It might sort of work. However, the intent is apparently to
> support flat trees of cooperating modules at the same level, not to
> allow you to graft in external modules at arbitrary places.
>
> > What I mean: if I've added repo FOO as submodule with path ./foo, and
> > then I want to add repo BAR as submodule with path ./foo/bar, should I
> > add BAR to the root superproject, or I can add it to FOO and therefore
> > convert FOO submodule to superproject for BAR? What is
> > recommended/support way here?
>
> The supported way currently is to add BAR to the root project.
OK, thanks.
> I don't see why git's method of representing submodules as commits
> would not support arbitrary grafting of external modules. The problem
> is how to manage that, especially structuring the needed metadata, and
> I guess they don't have enough porcelain in place yet.
After reading of manpage I've thoughts there is nothing that should
prevent to make gitlink to subtree in the submodule. As I see the
submodules support in git is very "spartan" (I'd say) and requires many
manual steps from the user in special order to keep the things working
properly.
> HTH
Yes, it helps, thank you.
More information about the bazaar
mailing list