+9

Add option to find common ancestor (aka merge base) for selected commits

Mikhail Matrosov 3 years ago updated by Mario123 6 months ago 1

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.

+1

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.