aboutsummaryrefslogtreecommitdiffstats
path: root/t/helper
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-10-05 14:01:50 -0700
committerJunio C Hamano <gitster@pobox.com>2020-10-05 14:01:50 -0700
commitc01b041ef08580cfadc288d14068beec84e9a2d3 (patch)
tree23dc2ebe730083c41501cc43cc22a284d7876fb1 /t/helper
parentab4691b67bc1a2cd8d9068fb03e3fbd6979247d6 (diff)
parent8791bf18414a37205127e184c04cad53a43aeff1 (diff)
downloadgit-c01b041ef08580cfadc288d14068beec84e9a2d3.tar.gz
Merge branch 'ds/in-merge-bases-many-optim-bug'
in_merge_bases_many(), a way to see if a commit is reachable from any commit in a set of commits, was totally broken when the commit-graph feature was in use, which has been corrected. * ds/in-merge-bases-many-optim-bug: commit-reach: fix in_merge_bases_many bug
Diffstat (limited to 't/helper')
-rw-r--r--t/helper/test-reach.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/t/helper/test-reach.c b/t/helper/test-reach.c
index 14a3655442..cda804ed79 100644
--- a/t/helper/test-reach.c
+++ b/t/helper/test-reach.c
@@ -107,6 +107,8 @@ int cmd__reach(int ac, const char **av)
printf("%s(A,B):%d\n", av[1], ref_newer(&oid_A, &oid_B));
else if (!strcmp(av[1], "in_merge_bases"))
printf("%s(A,B):%d\n", av[1], in_merge_bases(A, B));
+ else if (!strcmp(av[1], "in_merge_bases_many"))
+ printf("%s(A,X):%d\n", av[1], in_merge_bases_many(A, X_nr, X_array));
else if (!strcmp(av[1], "is_descendant_of"))
printf("%s(A,X):%d\n", av[1], repo_is_descendant_of(r, A, X));
else if (!strcmp(av[1], "get_merge_bases_many")) {