{"thread":{"id":"66923","subject":"[PATCH] reftable: document first ref block start for version 2 headers","startedAt":"2026-11-24T01:02:52Z","lastAt":"2026-11-24T01:02:52Z","messageCount":1,"participants":["Daniel Scherzer via GitGitGadget"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"559205","messageId":"pull.2507.git.git.1795482172751.gitgitgadget@gmail.com","threadId":"66923","inReplyTo":null,"subject":"[PATCH] reftable: document first ref block start for version 2 headers","fromName":"Daniel Scherzer via GitGitGadget","fromEmail":"gitgitgadget@gmail.com","sentAt":"2026-11-24T01:02:52Z","receivedAt":"2026-11-24T01:02:52Z","isPatch":true,"sender":{"key":"name:Daniel Scherzer","avatar":null},"body":"From: Daniel Scherzer <daniel.e.scherzer@gmail.com>\n\nThe existing documentation assumed that headers were always 24 bytes, which\nis no longer the case following the introduction of version 2 headers,\nwhich are 28 bytes. Update the \"First ref block\" section of the reftable\ndocumentation to indicate that the offset for the start of the first ref\nblock depends on the version of the file header.\n\nSigned-off-by: Daniel Scherzer <daniel.e.scherzer@gmail.com>\n---\n    reftable: document first ref block start for version 2 headers\n\nPublished-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-2507%2FDanielEScherzer%2Freftable-version-2-header-v1\nFetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-2507/DanielEScherzer/reftable-version-2-header-v1\nPull-Request: https://github.com/git/git/pull/2507\n\n Documentation/technical/reftable.adoc | 7 ++++---\n 1 file changed, 4 insertions(+), 3 deletions(-)\n\ndiff --git a/Documentation/technical/reftable.adoc b/Documentation/technical/reftable.adoc\nindex dd0b37c4e3..b277c4afe2 100644\n--- a/Documentation/technical/reftable.adoc\n+++ b/Documentation/technical/reftable.adoc\n@@ -256,11 +256,12 @@ First ref block\n ^^^^^^^^^^^^^^^\n \n The first ref block shares the same block as the file header, and is 24\n-bytes smaller than all other blocks in the file. The first block\n-immediately begins after the file header, at position 24.\n+bytes smaller than all other blocks in the file for version 1 headers, and\n+28 bytes smaller than all other blocks in the file for version 2 headers.\n+The first block immediately begins after the file header, at position 24 or 28.\n \n If the first block is a log block (a log-only file), its block header\n-begins immediately at position 24.\n+begins immediately at position 24 or 28.\n \n Ref block format\n ^^^^^^^^^^^^^^^^\n\nbase-commit: 77904e546de3bd940621092ecec47a88d0cede5d\n-- \ngitgitgadget\n\n"}]}