"Lauri Alanko" <l...@iki.fi> writes:
> I intend to work on a "subrepository" tool for git, but before I
> embark on the actual programming, I thought to first invite comments
> on the general design.
> Some background first. I know that there are several existing
> approaches already for managing nested repositories, but none of them
> quite seems to fit my purposes. My primary goal is to use git for home
> directory backup and mirroring, while the home directory itself may of
> course contain repositories.
> Submodules are a bit closer to what I want, but they have clearly been
> designed for a different purpose: a repository with submodules is only
> supposed to collate existing repositories, not act as a source for
I have a repository that covers my home directory and some of its
subdirectories have their own repositories.
I had my home directory and its subdirectories before Git ever
existed, and I made my home directory and these subdirectories into
separate, nested Git repositories fairly early after I started
managing them with Git---way before submodules were invented. Now
the subdirectory repositories are bound as submodules of the top
level directory just fine.
I push these out for safekeeping purposes, all of my machines get
their copies from here, and some submodules are not cloned to work
machines (they house data of private nature). They are used just
like you are expected to use submodules. In fact, this is pretty
much vanilla use case of submodules, I think.
They _all_ originate from under my home directory, not "collating
existing repositories" at all.
Have you considered how you can _extend_ submodules support to
support your use case better? I think that would be a much more
useful approach, as you are likely to get help from other people who
do use submodules.
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html