]> git.ipfire.org Git - thirdparty/git.git/commit
shallow: fix -Wsign-compare warnings
authorPatrick Steinhardt <ps@pks.im>
Fri, 27 Dec 2024 10:46:28 +0000 (11:46 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 27 Dec 2024 16:12:40 +0000 (08:12 -0800)
commit455ac07021d4feede4f5b7e39bf00dc186ce3c09
tree95b517937653d59d67bde1dae114ceec50854515
parent1ab5948141e62b52bcb812b04a901b3efaf1b578
shallow: fix -Wsign-compare warnings

Fix a couple of -Wsign-compare issues in "shallow.c" and mark the file
as -Wsign-compare-clean. This change prepares the code for a refactoring
of `repo_in_merge_bases_many()`, which will be adapted to accept the
number of commits as `size_t` instead of `int`.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
shallow.c
shallow.h