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

[PATCH 0/5] Improvements for storage format handling

From
Patrick Steinhardt <ps@pks.im>
Date
Nov 5, 2026, 15:02 UTC
Message-ID
<20261105-pks-storage-format-improvements-v1-0-870bb4212518@pks.im>
Hi,

this patch series includes a couple of improvements for how we handle ref and object storage formats.

Most importantly, this series allows us to run tests with a different object storage backend via `GIT_TEST_DEFAULT_OBJECT_STORAGE_FORMAT=`. As we don't have an alternative backend, I also introduce the ability to specify a default object (and ref) storage format that carries a payload so that you can run all tests with "files://objdir", for example. That surfaces a bunch of tests that assume objects exist in ".git/objects".

Overall it's a surprisingly small number of test failures, only 1105 out of 35000 tests fail. Fixing those is not part of this patch series, but we'll start upstreaming fixes once this lands. Such tests will either have to be adapted to use plumbing commands, or they'll need to be tagged with a prerequisite. It's going to be a bunch of work, but it's basically preparing for the introduction of alternative backends already.

The series is built on top of 0ffa3e35c7c (The 15th batch, 2026-11-04) with ps/odb-object-storage-extension at 87a55d790ca (builtin/submodule: propagate "--object-storage-format=", 2026-10-27) merged into it.

Thanks!
Patrick
---
Patrick Steinhardt (5):
      refs: create leading directories
      odb/files: create leading directories
      setup: allow speciyfing payloads with default storage formats
      builtin/rev-parse: print payload for the ref storage format
      t: allow testing with a non-default object storage foramt
 builtin/rev-parse.c     |  6 +++++-
 odb/source-files.c      |  1 +
 refs/files-backend.c    |  1 +
 refs/reftable-backend.c |  1 +
 setup.c                 | 24 ++++++++++++++++-----
 t/t0001-init.sh         | 57 ++++++++++++++++++++++++++++++++++++++++++++++---
 t/t1423-ref-backend.sh  | 24 +++++++++++++++++++++
 t/t1500-rev-parse.sh    |  9 ++++++++
 t/test-lib.sh           |  4 ++++
 9 files changed, 118 insertions(+), 9 deletions(-)

--- base-commit: df904e7114cda6ca4ebf514115835a2dcd2f2b64 change-id: 20261105-pks-storage-format-improvements-7b716599bada

Next: Patrick Steinhardt
Message 1 of 13 in “Improvements for storage format handling”
  1. 0/5 Improvements for storage format handlingPatrick Steinhardt, Nov 5, 2026
  2. 1/5 refs: create leading directoriesPatrick Steinhardt, Nov 5, 2026
  3. Karthik NayakNov 6, 2026
  4. Patrick SteinhardtNov 6, 2026
  5. 2/5 odb/files: create leading directoriesPatrick Steinhardt, Nov 5, 2026
  6. 3/5 setup: allow speciyfing payloads with default storage formatsPatrick Steinhardt, Nov 5, 2026
  7. 4/5 builtin/rev-parse: print payload for the ref storage formatPatrick Steinhardt, Nov 5, 2026
  8. Karthik NayakNov 6, 2026
  9. 5/5 t: allow testing with a non-default object storage foramtPatrick Steinhardt, Nov 5, 2026
  10. Junio C HamanoNov 6, 2026
  11. Patrick SteinhardtNov 9, 2026
  12. Karthik NayakNov 6, 2026
  13. Patrick SteinhardtNov 6, 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.