3 ms·
Show HN: Git-vendor, manage dependencies with git-subtree
- pspeter3 11y agoWhy subtree over submodule?
- brettlangdon 11y agoMost of it is a personal preference. I'd rather pull the full repo of my dependencies in rather than "deal" with submodules. Submodules add some extra necessary workflow steps that others contributing to your repo might not be expecting. Subtree simplifies a lot of that. As well, I think it helps to solidify the "reproducible build" concept by taking submodules 1 step further.
- rspeer 11y agoHave you ever tried using submodules, in a repository that multiple people commit to?
- pspeter3 11y agoYeah, it was extremely frustrating for actively changing code and not an issue for third party dependencies. I wonder what the trade offs between submodules and subtrees are for this use case.
- emmelaich 11y agosubmodule can only track a revision, not a branch. (at least in the git versions distributed with centos/redhat6; I believe later versions can)
- pspeter3 11y agoThat actually seems like a benefit to me. Pinned versions are helpful for build/test reliability.
- brettlangdon 11y agoFor anyone interested, here is a great article on git-subtree and where I learned about it from: https://developer.atlassian.com/blog/2015/05/the-power-of-git-subtree/ https://developer.atlassian.com/blog/2015/05/the-power-of-gi...