* subrepo vs submodule
@ 2017-07-19 14:27 Robert Dailey
2017-07-19 17:43 ` Stefan Beller
0 siblings, 1 reply; 2+ messages in thread
From: Robert Dailey @ 2017-07-19 14:27 UTC (permalink / raw)
To: Git
So I found out about "subrepo" today: https://github.com/ingydotnet/git-subrepo
I'm still reading about how it works internally, but what do you guys
think about it? Is it a more or less perfect alternative to
submodules? What would be a reason not to use it?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: subrepo vs submodule
2017-07-19 14:27 subrepo vs submodule Robert Dailey
@ 2017-07-19 17:43 ` Stefan Beller
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Beller @ 2017-07-19 17:43 UTC (permalink / raw)
To: Robert Dailey; +Cc: Git
On Wed, Jul 19, 2017 at 7:27 AM, Robert Dailey <rcdailey.lists@gmail.com> wrote:
> So I found out about "subrepo" today: https://github.com/ingydotnet/git-subrepo
>
> I'm still reading about how it works internally, but what do you guys
> think about it?
Nice find!
From reading the toplevel ReadMe.pod, I have the impression
that it is closer to subtree than submodules as the content is
stored in the main repository using a .gitrepo file to indicate that
it is a special directory.
> Is it a more or less perfect alternative to submodules?
Maybe to subtrees. It does not offer the workflows that
submodules allow you:
" Users get your repo and all your subrepos just
by cloning your repo."
Submodules allow you to *not* get the content of a submodule.
There are multiple reasons for not wanting the content, including
* not needing it (e.g. documentation, hardware specific code
for an architecture you don't have)
* not wanting it (e.g. large binary files yield bandwidth concerns)
"Upstream history (clone/pull) is condensed into a single commit."
Same for submodules, not so(?) for subtrees.
Depending on the point of view this is either a feature or a bug.
For clean history you may view this as a feature, but as soon as
you want to git-bisect, you'd wish for the most fine grained history
available.
> What would be a reason not to use it?
There are multiple things that should drive a decision. some:
* What do you need in terms of workflow (even just talking about
"submodule vs subtree" you get different answers for different
workflows), and then seeing how subrepo compares to the others.
* Can you use it? (does it work on your platform? subrepo is bash,
whereas submodule, subtree are posix shell; how is it distributed?
Some people are uneasy installing from random github repos on
the web, so do you install it via the package manager of your
distribution, has your organisation a package to use?)
* Ease of use, do you need to explain the workflow
to collaborateurs?
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-07-19 17:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-19 14:27 subrepo vs submodule Robert Dailey
2017-07-19 17:43 ` Stefan Beller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.