+9
Completed
Add option to find common ancestor (aka merge base) for selected commits
Investigating history of commits with many merges can be a real pain. One useful feature is to be able to locate merge base. Not only for merge commits (though it would be useful on its own), but also for arbitrary pair of commits.
Customer support service by UserEcho
We've written an accelerator for this task, which uses uses `git rev-parse` on the selected Hash and compares this with the reference branch. Indeed, you have to specifiy a branch name for this since rev-parse need so know the history of this.
If you pipe the two outputs to diff, you will find the original forking point.
This can be done by adding a Tool (Preferences, Tools) like:
${git} merge-base ${commit} ${commit2}
with Show output and wait until finished option selected. Then in the Log Graph or in the Branches view, you can select two commits and invoke this tool from the context menu and check results in Window|Output.
SmartGit 22.1 will show the merge base in the Commit view.