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

[PATCH] reftable: document first ref block start for version 2 headers

From
DGDaniel Scherzer via GitGitGadget <gitgitgadget@gmail.com>
Date
Nov 24, 2026, 01:02 UTC
Message-ID
<pull.2507.git.git.1795482172751.gitgitgadget@gmail.com>
From: Daniel Scherzer <daniel.e.scherzer@gmail.com>

The existing documentation assumed that headers were always 24 bytes, which is no longer the case following the introduction of version 2 headers, which are 28 bytes. Update the "First ref block" section of the reftable documentation to indicate that the offset for the start of the first ref block depends on the version of the file header.

Signed-off-by: Daniel Scherzer <daniel.e.scherzer@gmail.com>
---
    reftable: document first ref block start for version 2 headers
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-2507%2FDanielEScherzer%2Freftable-version-2-header-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-2507/DanielEScherzer/reftable-version-2-header-v1
Pull-Request: https://github.com/git/git/pull/2507
 Documentation/technical/reftable.adoc | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/Documentation/technical/reftable.adoc b/Documentation/technical/reftable.adoc
index dd0b37c4e3..b277c4afe2 100644
--- a/Documentation/technical/reftable.adoc
+++ b/Documentation/technical/reftable.adoc
@@ -256,11 +256,12 @@ First ref block
 ^^^^^^^^^^^^^^^
 
 The first ref block shares the same block as the file header, and is 24
-bytes smaller than all other blocks in the file. The first block
-immediately begins after the file header, at position 24.
+bytes smaller than all other blocks in the file for version 1 headers, and
+28 bytes smaller than all other blocks in the file for version 2 headers.
+The first block immediately begins after the file header, at position 24 or 28.
 
 If the first block is a log block (a log-only file), its block header
-begins immediately at position 24.
+begins immediately at position 24 or 28.
 
 Ref block format
 ^^^^^^^^^^^^^^^^

base-commit: 77904e546de3bd940621092ecec47a88d0cede5d
-- 
gitgitgadget
Message 1 of 1 in “reftable: document first ref block start for version 2 headers”
  1. reftable: document first ref block start for version 2 headersDaniel Scherzer via GitGitGadget, Nov 24, 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.