summaryrefslogtreecommitdiffstats
path: root/contrib/persistent-https
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2026-02-12 07:59:41 +0100
committerJunio C Hamano <gitster@pobox.com>2026-02-12 11:05:08 -0800
commit732ec9b17b78a49496bfb796fcfe606f3a9f02f1 (patch)
tree88cd108f3a7d602c5fb4324b52e7b279e799441a /contrib/persistent-https
parentf6516a5241684355f3fb9f7b70e287e98b48d0ef (diff)
downloadgit-732ec9b17b78a49496bfb796fcfe606f3a9f02f1.tar.gz
git-732ec9b17b78a49496bfb796fcfe606f3a9f02f1.zip
odb: convert `odb_has_object()` flags into an enum
Following the reason in the preceding commit, convert the `odb_has_object()` flags into an enum. With this change, we would have catched the misuse of `odb_has_object()` that was fixed in a preceding commit as the compiler would have generated a warning: ../builtin/backfill.c:71:9: error: implicit conversion from enumeration type 'enum odb_object_info_flag' to different enumeration type 'enum odb_has_object_flag' [-Werror,-Wenum-conversion] 70 | if (!odb_has_object(ctx->repo->objects, &list->oid[i], | ~~~~~~~~~~~~~~ 71 | OBJECT_INFO_FOR_PREFETCH)) | ^~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions