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

ds/omit-trailing-hash-in-index (was: What's cooking in git.git (Dec 2022, #06; Sun, 18))

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Dec 19, 2022, 10:49 UTC
Message-ID
<221219.86y1r3zmrv.gmgdl@evledraar.gmail.com>
In-Reply-To
<xmqqh6xtw4uw.fsf@gitster.g>
On Sun, Dec 18 2022, Junio C Hamano wrote:
Show 11 quoted lines
> * ds/omit-trailing-hash-in-index (2022-12-17) 4 commits
>  - features: feature.manyFiles implies fast index writes
>  - test-lib-functions: add helper for trailing hash
>  - read-cache: add index.skipHash config option
>  - hashfile: allow skipping the hash function
>
>  Introduce an optional configuration to allow the trailing hash that
>  protects the index file from bit flipping.
>
>  Will merge to 'next'?
>  source: <pull.1439.v4.git.1671204678.gitgitgadget@gmail.com>

I've been following this closely & reviewing it. I think the end-state is probably good, but noted in [1] that the intermediate progression equates bad config with "true", so:

	git -c index.skipHash=blahblah status
Enables it, fixing that is trivial, and probably worth a re-roll.

The "probably" above is then because the patches seemingly try to make this compatible with different config for submodules, but there's no tests for submodule interaction, so that may or may not work.

Normally we could just trust the "struct repository *" parameter we get, but in this case it's "istate->repo", which (as I showed in the v3 feedback[2]) is sometimes NULL.

Perhaps that NULL is benign, and perhaps it's a symptom that would result in a bug exposed by this topic bug. I don't know, but think that before this lands we really should have tests to tease out those interactions.

1. https://lore.kernel.org/git/221216.86sfhf1gbc.gmgdl@evledraar.gmail.com/
2. https://lore.kernel.org/git/221215.865yec3b1j.gmgdl@evledraar.gmail.com/
Previous: Junio C HamanoNext: Derrick Stolee
Message 3 of 9 in “What's cooking in git.git (Dec 2022, #06; Sun, 18)”
  1. Junio C HamanoDec 18, 2022
  2. Junio C HamanoDec 19, 2022
  3. ds/omit-trailing-hash-in-index (was: What's cooking in git.git (Dec 2022, #06; Sun, 18))Ævar Arnfjörð Bjarmason, Dec 19, 2022
  4. Derrick StoleeDec 20, 2022
  5. Ævar Arnfjörð BjarmasonDec 20, 2022
  6. Johannes SchindelinDec 20, 2022
  7. Junio C HamanoDec 21, 2022
  8. Johannes SchindelinDec 23, 2022
  9. Junio C HamanoDec 23, 2022

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.