aboutsummaryrefslogtreecommitdiff
path: root/odb/source-files.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2026-04-01 01:57:49 +0200
committerJunio C Hamano <gitster@pobox.com>2026-03-31 20:43:13 -0700
commitb2d421ece6a8e095394e76930e6929ee036571ef (patch)
tree4b7f500ceba34c3893fee7db8543c7ad6c011d0b /odb/source-files.c
parentff2e9d85d61f2f51793acbdb4bad68d48cc8bb85 (diff)
downloadgit-b2d421ece6a8e095394e76930e6929ee036571ef.tar.xz
odb: use enum for `odb_write_object` flags
We've got a couple of functions that accept `odb_write_object()` flags, but all of them accept the flags as an `unsigned` integer. In fact, we don't even have an `enum` for the flags field. Introduce this `enum` and adapt functions accordingly according to our coding style. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'odb/source-files.c')
-rw-r--r--odb/source-files.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/odb/source-files.c b/odb/source-files.c
index 76797569de..b5abd20e97 100644
--- a/odb/source-files.c
+++ b/odb/source-files.c
@@ -161,7 +161,7 @@ static int odb_source_files_write_object(struct odb_source *source,
enum object_type type,
struct object_id *oid,
struct object_id *compat_oid,
- unsigned flags)
+ enum odb_write_object_flags flags)
{
return odb_source_loose_write_object(source, buf, len, type,
oid, compat_oid, flags);