summaryrefslogtreecommitdiff
path: root/t/helper
diff options
context:
space:
mode:
authorCarlo Marcelo Arenas Belón <carenas@gmail.com>2020-06-23 18:42:22 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-06-23 23:36:53 (GMT)
commitc1ea625f72110fda87fd225d7dff002befb82d9f (patch)
treeb3f7a3f5b3bfee8395931651796095df7111baeb /t/helper
parent80b8ada54756e972b01d20b98a388fbbc3a2fe58 (diff)
downloadgit-c1ea625f72110fda87fd225d7dff002befb82d9f.zip
git-c1ea625f72110fda87fd225d7dff002befb82d9f.tar.gz
git-c1ea625f72110fda87fd225d7dff002befb82d9f.tar.bz2
commit-reach: avoid is_descendant_of() shim
d91d6fbf26 (commit-reach: create repo_is_descendant_of(), 2020-06-17) adds a repository aware version of is_descendant_of() and a backward compatibility shim that is barely used. Update all callers to directly use the new repo_is_descendant_of() function instead; making the codebase simpler and pushing more the_repository references higher up the stack. Helped-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com> Reviewed-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper')
-rw-r--r--t/helper/test-reach.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/helper/test-reach.c b/t/helper/test-reach.c
index a027217..1d640f4 100644
--- a/t/helper/test-reach.c
+++ b/t/helper/test-reach.c
@@ -108,7 +108,7 @@ int cmd__reach(int ac, const char **av)
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], "is_descendant_of"))
- printf("%s(A,X):%d\n", av[1], is_descendant_of(A, X));
+ printf("%s(A,X):%d\n", av[1], repo_is_descendant_of(r, A, X));
else if (!strcmp(av[1], "get_merge_bases_many")) {
struct commit_list *list = get_merge_bases_many(A, X_nr, X_array);
printf("%s(A,X):\n", av[1]);