In addition, other tools can also do this to varying degrees of success, like Bazel and cmake.
Show HN: Vdm, a sane alternative to e.g. Git submodules
51–60 of 64 posts
Re: Show HN: Vdm, a sane alternative to e.g. Git submodules
#52Re: Show HN: Vdm, a sane alternative to e.g. Git submodules
#53Re: Show HN: Vdm, a sane alternative to e.g. Git submodules
#54This allows you to treat common code in a repo as just a normal part of the repo. However, the common code is also in a repo of its own. This tool then allows you to push / merge your changes back to the common repo.
Check the git page for a list of the benefits.
Re: Show HN: Vdm, a sane alternative to e.g. Git submodules
#55Probably unpopular opinion: git submodules are just fine. They're "just" lacking a consistent UI. They have improved over the years, but the default config sucks because the defaults emulate the original, awful, UX. With proper configuration, it's much better, although there are still pain points (like rebase conflicts in non-submodule parts messing things up if you don't git submodule update)
Re: Show HN: Vdm, a sane alternative to e.g. Git submodules
#56Re: Show HN: Vdm, a sane alternative to e.g. Git submodules
#57Re: Show HN: Vdm, a sane alternative to e.g. Git submodules
#58To me, the biggest indicator that all the links being posted here about Git submodule systems come from people who don't know what they're doing is the fact that all of them (vdm, pasta, peru, git-aggregator, etc.) are using YAML as a config. Anyone who has worked at least a few years with Git and YAML knows that this type of file is not Git/diff friendly. I've seen too many disastrous merges, and the developers in t…
Re: Show HN: Vdm, a sane alternative to e.g. Git submodules
#59Probably unpopular opinion: git submodules are just fine. They're "just" lacking a consistent UI. They have improved over the years, but the default config sucks because the defaults emulate the original, awful, UX. With proper configuration, it's much better, although there are still pain points (like rebase conflicts in non-submodule parts messing things up if you don't git submodule update)
They have a ton of problems in my experience, a few off the top of my head:
- They force the specific repo url, e.g. ssh github even if you prefer to clone by http.
- Pulling from remote becomes difficult when submodules change, e.g. when a submodule is merged into main repo and becomes a proper subdir.
- git commands such as `git checkout -- .` don't work properly on them and I don't see how configs could change that.
Re: Show HN: Vdm, a sane alternative to e.g. Git submodules
#60To me, the biggest indicator that all the links being posted here about Git submodule systems come from people who don't know what they're doing is the fact that all of them (vdm, pasta, peru, git-aggregator, etc.) are using YAML as a config. Anyone who has worked at least a few years with Git and YAML knows that this type of file is not Git/diff friendly. I've seen too many disastrous merges, and the developers in t…