]> git.ipfire.org Git - thirdparty/git.git/commit
commit-reach: use `size_t` to track indices in `get_reachable_subset()`
authorPatrick Steinhardt <ps@pks.im>
Fri, 27 Dec 2024 10:46:25 +0000 (11:46 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 27 Dec 2024 16:11:45 +0000 (08:11 -0800)
commit85ee0680e2d5d667919e06394ca7622f09652310
treeb7bec04951c0310b0df8a88e7ff24dd77e1eeca7
parent45843d8f4eb2bbfc73cc361ba9d612d088dc8a4f
commit-reach: use `size_t` to track indices in `get_reachable_subset()`

Similar as with the preceding commit, adapt `get_reachable_subset()` so
that it tracks array indices via `size_t` instead of using signed
integers to fix a couple of -Wsign-compare warnings. Adapt callers
accordingly.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
bisect.c
commit-reach.c
commit-reach.h
commit.c
commit.h
ref-filter.c
remote.c