From: Derrick Stolee <derrickstolee@github.com>
To: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com>,
"Junio C Hamano" <gitster@pobox.com>
Cc: git@vger.kernel.org
Subject: Re: ds/omit-trailing-hash-in-index (was: What's cooking in git.git (Dec 2022, #06; Sun, 18))
Date: Tue, 20 Dec 2022 08:39:53 -0500 [thread overview]
Message-ID: <0113fed3-5dca-6a31-9b9d-becd009c2fca@github.com> (raw)
In-Reply-To: <221219.86y1r3zmrv.gmgdl@evledraar.gmail.com>
On 12/19/22 5:49 AM, Ævar Arnfjörð Bjarmason wrote:
>
> 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.
> 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
next prev parent reply other threads:[~2022-12-20 13:40 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-18 7:25 What's cooking in git.git (Dec 2022, #06; Sun, 18) Junio C Hamano
2022-12-19 3:07 ` Junio C Hamano
2022-12-19 10:49 ` ds/omit-trailing-hash-in-index (was: What's cooking in git.git (Dec 2022, #06; Sun, 18)) Ævar Arnfjörð Bjarmason
2022-12-20 13:39 ` Derrick Stolee [this message]
2022-12-20 13:45 ` Ævar Arnfjörð Bjarmason
2022-12-20 22:56 ` What's cooking in git.git (Dec 2022, #06; Sun, 18) Johannes Schindelin
2022-12-21 12:45 ` Junio C Hamano
2022-12-23 7:34 ` Johannes Schindelin
2022-12-23 9:11 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0113fed3-5dca-6a31-9b9d-becd009c2fca@github.com \
--to=derrickstolee@github.com \
--cc=avarab@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.