[PATCH 0/6] odb: small set of cleanups
- From
Patrick Steinhardt <ps@pks.im>
- Date
- Mar 31, 2026, 23:57 UTC
- Message-ID
- <20260401-pks-odb-cleanups-v1-0-89adba9ada68@pks.im>
Hi,
this patch series contains a small set of cleanups that I have accumulated over time, but that didn't fit into any of the other patch series I've sent out recently.
This patch is based on 270e10ad6d (The 23rd batch, 2026-03-30) with ps/odb-generic-object-name-handling at 83869e15fa (odb: introduce generic `odb_find_abbrev_len()`, 2026-03-20) merged into it.
Thanks!
Patrick
---
Patrick Steinhardt (6):
CodingGuidelines: document our style for flags
treewide: use enum for `odb_for_each_object()` flags
odb: rename `odb_write_object()` flags
odb: use enum for `odb_write_object` flags
odb: rename `odb_has_object()` flags
odb: drop unneeded headers and forward declsDocumentation/CodingGuidelines | 12 ++++++++++++ builtin/cat-file.c | 2 +- builtin/fetch.c | 4 ++-- builtin/fsck.c | 2 +- builtin/index-pack.c | 2 +- builtin/receive-pack.c | 2 +- builtin/remote.c | 2 +- builtin/show-ref.c | 2 +- builtin/unpack-objects.c | 2 +- cache-tree.c | 10 +++++----- fetch-pack.c | 4 ++-- http-push.c | 8 ++++---- http-walker.c | 4 ++-- list-objects.c | 2 +- notes.c | 2 +- object-file.c | 9 +++++---- object-file.h | 3 ++- odb.c | 10 +++++----- odb.h | 30 ++++++++++++------------------ odb/source-files.c | 2 +- odb/source.h | 4 ++-- packfile.c | 2 +- packfile.h | 2 +- reflog.c | 2 +- refs.c | 2 +- remote.c | 2 +- shallow.c | 6 +++--- walker.c | 2 +- 28 files changed, 72 insertions(+), 64 deletions(-)
--- base-commit: 04728db51b447d5e2d1a2748f7c70d30dbe5eb7a change-id: 20260320-pks-odb-cleanups-70aebd8d9998