github-improved
github-improved copied to clipboard
Label merge base with master when on another branch
When on https://github.com/greasemonkey/greasemonkey/commits/0.8 it would be neat to show 533df63175e234ddc61f (its parent commit, actually) as the intersection between the 0.8 branch and master. Maybe a label "master × 0.8" in some colour of its own would look nice.
http://developer.github.com/v3/git/ might allow finding the merge-base, and https://github.com/git/git/blob/master/Documentation/git-merge-base.txt plus the https://github.com/git/git/blob/master/builtin/merge-base.c source code, and the get_merge_bases_many
https://github.com/git/git/blob/master/commit.c implementation.
git source changes re: get_merge_bases_many, by the way.
http://developer.github.com/v3/repos/commits/#compare-two-commits specifically reports the common merge base of two commits (or that one doesn't exist), taking away the need for the above manual procedures.