I understand the remark is five yrs previous, but in the event anyone stumbles on to this in the future, to implement with command output, do git merge-base learn some-branch This is often also has the advantage that it works greater with Areas while in the file path. Even 'sed'ing https://thejillist.com/story10675451/the-greatest-guide-to-cats