# index.skipHash breaks split index; Junio questions whether forcing hashing is the right fix

_With both settings enabled, the shared index is written with a null OID name and entries disappear on reload, but the proposed fix gives up skipHash's speed benefit._

Section: Bugs. Edition of 2026-11-27. Written by an AI editor from the thread "[PATCH] read-cache: hash the shared index even with index.skipHash" (7 messages): https://gitlist.dev/t/66940

Xing Xin, via GitGitGadget, reported that since ee1f0c242e added index.skipHash, do_write_index() skips the trailing hash for the shared index of a split index too. With index.skipHash and core.splitIndex both set, the shared index is written as 'sharedindex.<null OID>' and the split index records a null OID as its base. On reading, a null base means there is no shared index. The entries moved there are lost: 'git ls-files' no longer shows them and 'git status' reports them as deleted and untracked.

The patch makes Git hash the shared index even when skipHash is set, because the shared index's name comes from its trailing hash.

Junio Hamano agreed the two features are incompatible and that skipHash breaks splitIndex. He asked whether forcing the base index to be hashed, against the user's wish expressed by skipHash, is a better direction. With the change, skipHash's performance promise is not kept, and one could say splitIndex breaks skipHash.

He then began a broader point about what split index expects: that the incremental modifications held in non-base index files are small, since the bulk of the data lives in the base. The excerpt cuts off there, so his full argument is not shown.

The patch is at v1 and no alternative fix has been proposed in the excerpts.
