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

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

From
Derrick Stolee <derrickstolee@github.com>
Date
Dec 20, 2022, 13:39 UTC
Message-ID
<0113fed3-5dca-6a31-9b9d-becd009c2fca@github.com>
In-Reply-To
<221219.86y1r3zmrv.gmgdl@evledraar.gmail.com>
On 12/19/22 5:49 AM, Ævar Arnfjörð Bjarmason wrote:
Show 22 quoted lines
> 
> On Sun, Dec 18 2022, Junio C Hamano wrote:
> 
>> * 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.

Fixing it is trivial, but as you say it is correct in the final version so I don't think this triviality is worth a re-roll.

Show 7 quoted lines
> 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.

This, and other feedback you've given around 'struct repository *' values makes me think you are not aware of the current state of the submodule work. I'm also a bit out-of-date, but my understanding is that the conversion to stop using the_repository everywhere is only halfway complete, which makes it difficult to properly test things with multiple 'struct repository *' pointers. However, the best thing we can do is to use whatever local repository we have, so we don't contribute further to the problem.

The fact that istate->repo is sometimes NULL is a separate issue, but is generally unrelated to the subject at hand and should be fixed by another topic, not used to block this one.

Thanks, -Stolee

Previous: Ævar Arnfjörð BjarmasonNext: Ævar Arnfjörð Bjarmason
Message 4 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.