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

repositoryformatversion and extensions

From
Edward Thomson <ethomson@edwardthomson.com>
Date
Mar 11, 2024, 11:54 UTC
Message-ID
<CA+WKDT0fAASYE_ZhSxATv2NUnYceOP-_EF1kqKNFSOWU4QdPVQ@mail.gmail.com>

While looking at worktree configuration, I realized that the extensions.worktreeconfig configuration option was honored even when core.repositoryformatversion was unset, or explicitly set to 0.

Re-reading the docs for repository-version, it doesn't explicitly state that extensions _require_ repositoryformatversion >= 1, it instead states that:

> When reading the core.repositoryformatversion variable, a git
> implementation which supports version 1 MUST also read any configuration
> keys found in the extensions section of the configuration file.

Despite that, at least one extension (objectformat) does require core.repositoryformatversion >= 1. Though, do note that objectformat is not mentioned in the repository-version documentation.

What other extensions require repository format version >= 1? Is core.objectformat the outlier here?

Is there documentation on which extensions are supported at which repository format versions?

Are there other extensions that are not documented in repository-version?

Cheers- Ed

Next: Patrick Steinhardt
Message 1 of 3 in “repositoryformatversion and extensions”
  1. Edward ThomsonMar 11, 2024
  2. Patrick SteinhardtMar 21, 2024
  3. Jeff KingMar 27, 2024

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.