On Wed, Jul 19, 2017 at 7:27 AM, Robert Dailey <rcdailey.lists@xxxxxxxxx> 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?