]> git.ipfire.org Git - thirdparty/git.git/commit
odb: fix flags parameter to be unsigned
authorPatrick Steinhardt <ps@pks.im>
Mon, 26 Jan 2026 09:51:18 +0000 (10:51 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 26 Jan 2026 16:26:06 +0000 (08:26 -0800)
commit6358da200fffc7f010f079c3f64ed77f10cd751d
tree97aef7f6f6beb3940854c54fdf9f8b974b1f41ac
parentbd1855b89760cc0f9a185010a0d92d2e11a73132
odb: fix flags parameter to be unsigned

The `flags` parameter accepted by various `for_each_object()` functions
is a bitfield of multiple flags. Such parameters are typically unsigned
in the Git codebase, but we use `enum odb_for_each_object_flags` in
some places.

Adapt these function signatures to use the correct type.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
object-file.c
object-file.h
packfile.c
packfile.h