]> git.ipfire.org Git - thirdparty/git.git/commit
odb: use enum for `odb_write_object` flags
authorPatrick Steinhardt <ps@pks.im>
Tue, 31 Mar 2026 23:57:49 +0000 (01:57 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 Apr 2026 03:43:13 +0000 (20:43 -0700)
commitb2d421ece6a8e095394e76930e6929ee036571ef
tree4b7f500ceba34c3893fee7db8543c7ad6c011d0b
parentff2e9d85d61f2f51793acbdb4bad68d48cc8bb85
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>
object-file.c
object-file.h
odb.c
odb.h
odb/source-files.c
odb/source.h