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

Re: [PATCH v4 0/7] odb: introduce object storage extension

From
Karthik Nayak <karthik.188@gmail.com>
Date
Oct 28, 2026, 10:53 UTC
Message-ID
<CAOLa=ZRWktyBmeeiMbPqnX_OkizqPA2mmGrnTABW7Pkk7DcKpA@mail.gmail.com>
In-Reply-To
<20261027-b4-pks-odb-extension-v4-0-5d28ca0ea1dc@pks.im>
Patrick Steinhardt <ps@pks.im> writes:
[snip]
Show 9 quoted lines
> Range-diff versus v3:
>
> 1:  906c3d3e3c3 = 1:  f09fc3200f9 loose: drop unused `repo_write_loose_object_map()`
> 2:  3d3bcf0f825 ! 2:  655e1de3b9d setup: introduce object storage extension
>     @@ Commit message
>              allows you to configure a different location for the ".git/objects"
>              directory.
>
>     +    Making the location of the "files" backend configurable is not he most
s/he/the
Show 39 quoted lines
>     +    thrilling feature of this new extension. But it gives us a couple of
>     +    advantages:
>     +
>     +      - It allows us to start exercising the payload logic in our tests so
>     +        that we know it's working properly for backends that will need it.
>     +
>     +      - It allows us to easily detect tests that are broken with the new
>     +        extension because they for example assume that an object is a file
>     +        in ".git/objects/". Testing is not part of this series yet, but will
>     +        be done in subsequent patch series.
>     +
>     +      - It aligns with how we handle the ref storage extension, where we can
>     +        also change its location to an arbitrary path.
>     +
>     +      - It allows for some very esoteric and edge-case-y gimmicks. For
>     +        example, you can initialize a single repository "skeleton" and then
>     +        multiplex therein by setting both GIT_REF_STORAGE_FORMAT and
>     +        GIT_OBJECT_STORAGE_FORMAT to point to different databases. These
>     +        edge cases won't matter to many people out there, but we will use
>     +        this for example as a building block for migrations.
>     +
>          Eventually, this mechanism will be used to support alternative backends.
>
>          Signed-off-by: Patrick Steinhardt <ps@pks.im>
>     @@ setup.c: static enum extension_result handle_extension(const char *var,
>       		return EXTENSION_OK;
>       	} else if (!strcmp(ext, "relativeworktrees")) {
>       		data->relative_worktrees = git_config_bool(var, value);
>     -@@ setup.c: static enum extension_result handle_extension(const char *var,
>     - 		data->submodule_path_cfg = git_config_bool(var, value);
>     - 		return EXTENSION_OK;
>     - 	}
>     -+
>     - 	return EXTENSION_UNKNOWN;
>     - }
>     -
>      @@ setup.c: void clear_repository_format(struct repository_format *format)
>       	free(format->work_tree);
>       	free(format->partial_clone);
[snip]
The rest looks good. Overall I'm happy with this version!
Previous: Patrick SteinhardtNext: Patrick Steinhardt
Message 58 of 59 in “odb: introduce object storage extension”
  1. 0/7 odb: introduce object storage extensionPatrick Steinhardt, Oct 19, 2026
  2. 1/7 loose: drop unused `repo_write_loose_object_map()`Patrick Steinhardt, Oct 19, 2026
  3. Karthik NayakOct 19, 2026
  4. Patrick SteinhardtOct 20, 2026
  5. Karthik NayakOct 20, 2026
  6. 2/7 setup: introduce object storage extensionPatrick Steinhardt, Oct 19, 2026
  7. Karthik NayakOct 19, 2026
  8. Junio C HamanoOct 20, 2026
  9. Karthik NayakOct 20, 2026
  10. Patrick SteinhardtOct 20, 2026
  11. Karthik NayakOct 20, 2026
  12. 3/7 setup: allow overriding object storage format via environmentPatrick Steinhardt, Oct 19, 2026
  13. Karthik NayakOct 19, 2026
  14. Patrick SteinhardtOct 20, 2026
  15. Karthik NayakOct 20, 2026
  16. 4/7 builtin: expose the object storage formatPatrick Steinhardt, Oct 19, 2026
  17. Karthik NayakOct 19, 2026
  18. Patrick SteinhardtOct 20, 2026
  19. Karthik NayakOct 20, 2026
  20. 5/7 builtin/init: introduce handling of object storage formatPatrick Steinhardt, Oct 19, 2026
  21. 6/7 builtin/clone: introduce "--object-storage-format="Patrick Steinhardt, Oct 19, 2026
  22. 7/7 builtin/submodule: propagate "--object-storage-format="Patrick Steinhardt, Oct 19, 2026
  23. 0/7 odb: introduce object storage extensionPatrick Steinhardt, Oct 21, 2026
  24. 1/7 loose: drop unused `repo_write_loose_object_map()`Patrick Steinhardt, Oct 21, 2026
  25. 2/7 setup: introduce object storage extensionPatrick Steinhardt, Oct 21, 2026
  26. 3/7 setup: allow overriding object storage format via environmentPatrick Steinhardt, Oct 21, 2026
  27. 4/7 builtin: expose the object storage formatPatrick Steinhardt, Oct 21, 2026
  28. 5/7 builtin/init: introduce handling of object storage formatPatrick Steinhardt, Oct 21, 2026
  29. Karthik NayakOct 21, 2026
  30. Patrick SteinhardtOct 23, 2026
  31. 6/7 builtin/clone: introduce "--object-storage-format="Patrick Steinhardt, Oct 21, 2026
  32. 7/7 builtin/submodule: propagate "--object-storage-format="Patrick Steinhardt, Oct 21, 2026
  33. Karthik NayakOct 21, 2026
  34. 0/7 odb: introduce object storage extensionPatrick Steinhardt, Oct 23, 2026
  35. 1/7 loose: drop unused `repo_write_loose_object_map()`Patrick Steinhardt, Oct 23, 2026
  36. 2/7 setup: introduce object storage extensionPatrick Steinhardt, Oct 23, 2026
  37. SZEDER GáborOct 24, 2026
  38. Patrick SteinhardtOct 26, 2026
  39. Karthik NayakOct 26, 2026
  40. Patrick SteinhardtOct 26, 2026
  41. 3/7 setup: allow overriding object storage format via environmentPatrick Steinhardt, Oct 23, 2026
  42. Karthik NayakOct 26, 2026
  43. Patrick SteinhardtOct 26, 2026
  44. 4/7 builtin: expose the object storage formatPatrick Steinhardt, Oct 23, 2026
  45. 5/7 builtin/init: introduce handling of object storage formatPatrick Steinhardt, Oct 23, 2026
  46. 6/7 builtin/clone: introduce "--object-storage-format="Patrick Steinhardt, Oct 23, 2026
  47. 7/7 builtin/submodule: propagate "--object-storage-format="Patrick Steinhardt, Oct 23, 2026
  48. Karthik NayakOct 26, 2026
  49. Patrick SteinhardtOct 26, 2026
  50. 0/7 odb: introduce object storage extensionPatrick Steinhardt, Oct 27, 2026
  51. 1/7 loose: drop unused `repo_write_loose_object_map()`Patrick Steinhardt, Oct 27, 2026
  52. 2/7 setup: introduce object storage extensionPatrick Steinhardt, Oct 27, 2026
  53. 3/7 setup: allow overriding object storage format via environmentPatrick Steinhardt, Oct 27, 2026
  54. 4/7 builtin: expose the object storage formatPatrick Steinhardt, Oct 27, 2026
  55. 5/7 builtin/init: introduce handling of object storage formatPatrick Steinhardt, Oct 27, 2026
  56. 6/7 builtin/clone: introduce "--object-storage-format="Patrick Steinhardt, Oct 27, 2026
  57. 7/7 builtin/submodule: propagate "--object-storage-format="Patrick Steinhardt, Oct 27, 2026
  58. Karthik NayakOct 28, 2026
  59. Patrick SteinhardtOct 28, 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.