[PATCH 0/9] commit-reach: -Wsign-compare follow-ups
- From
Patrick Steinhardt <ps@pks.im>
- Date
- Dec 27, 2024, 10:46 UTC
- Message-ID
- <20241227-b4-pks-commit-reach-sign-compare-v1-0-07c59c2aa632@pks.im>
Hi,
this patch series is a follow-up for [1], fixing two smallish issues introduced in that patch. Naturally I couldn't stop there and decided to also make "commit-reach.c" and two other files -Wsign-compare-clean.
Thanks!
Patrick
[1]: <20241220084949.GA132704@coredump.intra.peff.net>
---
Patrick Steinhardt (9):
prio-queue: fix type of `insertion_ctr`
commit-reach: fix index used to loop through unsigned integer
commit-reach: fix type of `min_commit_date`
commit-reach: use `size_t` to track indices in `remove_redundant()`
commit-reach: use `size_t` to track indices in `get_reachable_subset()`
builtin/log: use `size_t` to track indices
builtin/log: fix remaining -Wsign-compare warnings
shallow: fix -Wsign-compare warnings
commit-reach: use `size_t` to track indices when computing merge basesbisect.c | 11 ++++---- builtin/log.c | 50 +++++++++++++++++----------------- builtin/merge-base.c | 4 +-- commit-reach.c | 75 +++++++++++++++++++++++++++------------------------ commit-reach.h | 10 +++---- commit.c | 4 +-- commit.h | 2 +- prio-queue.h | 4 +-- ref-filter.c | 2 +- remote.c | 4 +-- shallow.c | 38 +++++++++++++------------- shallow.h | 6 ++--- t/helper/test-reach.c | 6 ++--- 13 files changed, 111 insertions(+), 105 deletions(-)
--- base-commit: 76cf4f61c87855ebf0784b88aaf737d6b09f504b change-id: 20241227-b4-pks-commit-reach-sign-compare-235a03fffc78