From: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org, Derrick Stolee <derrickstolee@github.com>
Subject: ds/omit-trailing-hash-in-index (was: What's cooking in git.git (Dec 2022, #06; Sun, 18))
Date: Mon, 19 Dec 2022 11:49:30 +0100 [thread overview]
Message-ID: <221219.86y1r3zmrv.gmgdl@evledraar.gmail.com> (raw)
In-Reply-To: <xmqqh6xtw4uw.fsf@gitster.g>
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.
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/
next prev parent reply other threads:[~2022-12-19 10:54 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 ` Ævar Arnfjörð Bjarmason [this message]
2022-12-20 13:39 ` ds/omit-trailing-hash-in-index (was: What's cooking in git.git (Dec 2022, #06; Sun, 18)) Derrick Stolee
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=221219.86y1r3zmrv.gmgdl@evledraar.gmail.com \
--to=avarab@gmail.com \
--cc=derrickstolee@github.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).