github-improved icon indicating copy to clipboard operation
github-improved copied to clipboard

Label merge base with master when on another branch

Open johan opened this issue 13 years ago • 2 comments

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.

johan avatar May 03 '11 18:05 johan

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.

johan avatar Jun 30 '11 20:06 johan

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.

johan avatar Sep 09 '12 18:09 johan