commit-reach: avoid is_descendant_of() shim
authorCarlo Marcelo Arenas Belón <carenas@gmail.com>
Tue, 23 Jun 2020 18:42:22 +0000 (11:42 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 23 Jun 2020 23:36:53 +0000 (16:36 -0700)
commitc1ea625f72110fda87fd225d7dff002befb82d9f
treeb3f7a3f5b3bfee8395931651796095df7111baeb
parent80b8ada54756e972b01d20b98a388fbbc3a2fe58
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>
builtin/pull.c
commit-reach.c
commit-reach.h
t/helper/test-reach.c