Support for "git subtree" command (add, pull, push, merge, split) and its specific commit layout
For me, this is the one missing feature preventing SmartGit from being the Ultimate Git GUI.
Subtree is particularly useful when working with Roots, a powerful Wordpress framework.
Documentation for Roots & its subprojects recommends installing by pulling the git repo... and deleting the .git folder. That's a shame, because we lose the power of git and every update equates to a fresh install.
The particular about this environment is that we pull Trellis, Bedrock & Sage not as dependencies, but as source the we modify. I e.g. added more steps to deploy additional software on the server. Yet we want to receive diff updates on the code, which is not possible by cutting the link to the original repos. So it makes sense to keep the entire code in a single repository. We only need to manage the path where each sub-repo is checked out, as they do not live in different subfolders.
Submodules do not work for this use case, as explained. Subtrees are an excellent tool though.
They are set up by (e.g. Sage deep down the tree):
git subtree add --prefix=site/web/app/themes/sage sage master -m "Add Sage subtree"
Good news is, once subtrees are set up through command-line, they are transparent to Smartgit! Merging updates from upstream into each respective subtree works like a charm. We only need to resolve merge-conflicts created by our own edits. The SmartGit interface does most of the work (which it could not if we had cut the link with upstream).
Sometimes the subtree path goes missing. I do not know where the error comes from yet, but that would probably be solved by a SmartGit implementation.Please implement setting up subtrees in Smartgit, as you do for submodules and git-flow. To the looks, only the install step is missing, so it is a relatively small workload.
Some additional reading to help with implementation:
Another article explaining the benefits of Subtree: https://tsh.io/blog/git-subtree-or-how-i-stopped-worrying-and-learned-to-love-external-dependencies/
Are there plans to make this happen in SmartGit? We just started using subtrees at work and have a bunch of SmartGit licenses here. Most of my colleagues are no "consoleros" and it would make my live as maintainer much easier if a GUI interface to upstream subtree repos would be in SmartGit.
What commands you miss most?
git subtree add --prefix=SUBDIRECTORY ORIGIN BRANCH
git merge -s subtree ORIGIN/BRANCH
Customer support service by UserEcho