aboutsummaryrefslogtreecommitdiff
path: root/object-file.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2026-03-02 17:06:52 -0800
committerJunio C Hamano <gitster@pobox.com>2026-03-02 17:06:52 -0800
commit10dd04a3feef385358d66bf3d653325f64c20d3c (patch)
tree2129ba4a8c8b302eb888c5d14ed98139e373a30f /object-file.c
parent02c31a8ddc7a79a4e8f9dd0c437bcf3e73e60203 (diff)
parent732ec9b17b78a49496bfb796fcfe606f3a9f02f1 (diff)
downloadgit-10dd04a3feef385358d66bf3d653325f64c20d3c.tar.xz
Merge branch 'ps/object-info-bits-cleanup'
A couple of bugs in use of flag bits around odb API has been corrected, and the flag bits reordered. * ps/object-info-bits-cleanup: odb: convert `odb_has_object()` flags into an enum odb: convert object info flags into an enum odb: drop gaps in object info flag values builtin/fsck: fix flags passed to `odb_has_object()` builtin/backfill: fix flags passed to `odb_has_object()`
Diffstat (limited to 'object-file.c')
-rw-r--r--object-file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/object-file.c b/object-file.c
index 8d1d8c778e..098b0541ab 100644
--- a/object-file.c
+++ b/object-file.c
@@ -399,7 +399,7 @@ static int read_object_info_from_path(struct odb_source *source,
const char *path,
const struct object_id *oid,
struct object_info *oi,
- unsigned flags)
+ enum object_info_flags flags)
{
int ret;
int fd;
@@ -541,7 +541,7 @@ out:
int odb_source_loose_read_object_info(struct odb_source *source,
const struct object_id *oid,
struct object_info *oi,
- unsigned flags)
+ enum object_info_flags flags)
{
static struct strbuf buf = STRBUF_INIT;
odb_loose_path(source, &buf, oid);