summaryrefslogtreecommitdiff
path: root/commit-reach.c
diff options
context:
space:
mode:
authorDerrick Stolee <dstolee@microsoft.com>2018-07-20 16:33:20 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-07-20 22:38:55 (GMT)
commit324dec0191e7579e3990e707d334652c0fe4a786 (patch)
tree7c29d194ffc8ad47af2be47d58839ced95d5bef9 /commit-reach.c
parent6255232ec13b038a48326135f2e479797cd0d1f9 (diff)
downloadgit-324dec0191e7579e3990e707d334652c0fe4a786.zip
git-324dec0191e7579e3990e707d334652c0fe4a786.tar.gz
git-324dec0191e7579e3990e707d334652c0fe4a786.tar.bz2
test-reach: test get_merge_bases_many
The get_merge_bases_many method returns a list of merge bases for a single commit (A) against a list of commits (X). Some care is needed in constructing the expected behavior because the result is not the expected merge-base for an octopus merge with those parents but instead the set of maximal commits that are reachable from A and at least one of the commits in X. Add get_merge_bases_many to 'test-tool reach' and create a test that demonstrates that this output returns multiple results. Specifically, we select a list of three commits such that we output two commits that are reachable from one of the first two, respectively, and none are reachable from the third. Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit-reach.c')
0 files changed, 0 insertions, 0 deletions