summaryrefslogtreecommitdiff
path: root/t/helper/test-reach.c
diff options
context:
space:
mode:
authorDerrick Stolee <dstolee@microsoft.com>2018-07-20 16:33:22 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-07-20 22:38:55 (GMT)
commit0c89f715d06082216cc312dcd39e09cb80f7aad7 (patch)
treead60dd015def05baa63de0239be806f333e8a760 /t/helper/test-reach.c
parent324dec0191e7579e3990e707d334652c0fe4a786 (diff)
downloadgit-0c89f715d06082216cc312dcd39e09cb80f7aad7.zip
git-0c89f715d06082216cc312dcd39e09cb80f7aad7.tar.gz
git-0c89f715d06082216cc312dcd39e09cb80f7aad7.tar.bz2
test-reach: test reduce_heads
Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper/test-reach.c')
-rw-r--r--t/helper/test-reach.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/helper/test-reach.c b/t/helper/test-reach.c
index 4df0118..e32e193 100644
--- a/t/helper/test-reach.c
+++ b/t/helper/test-reach.c
@@ -102,6 +102,10 @@ int cmd__reach(int ac, const char **av)
struct commit_list *list = get_merge_bases_many(A, X_nr, X_array);
printf("%s(A,X):\n", av[1]);
print_sorted_commit_ids(list);
+ } else if (!strcmp(av[1], "reduce_heads")) {
+ struct commit_list *list = reduce_heads(X);
+ printf("%s(X):\n", av[1]);
+ print_sorted_commit_ids(list);
}
exit(0);