git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[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 decls
 Documentation/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

Next: Patrick Steinhardt
Message 1 of 7 in “odb: small set of cleanups”
  1. 0/6 odb: small set of cleanupsPatrick Steinhardt, Mar 31, 2026
  2. 1/6 CodingGuidelines: document our style for flagsPatrick Steinhardt, Mar 31, 2026
  3. 2/6 treewide: use enum for `odb_for_each_object()` flagsPatrick Steinhardt, Mar 31, 2026
  4. 3/6 odb: rename `odb_write_object()` flagsPatrick Steinhardt, Mar 31, 2026
  5. 4/6 odb: use enum for `odb_write_object` flagsPatrick Steinhardt, Mar 31, 2026
  6. 5/6 odb: rename `odb_has_object()` flagsPatrick Steinhardt, Mar 31, 2026
  7. 6/6 odb: drop unneeded headers and forward declsPatrick Steinhardt, Mar 31, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.