Skip to content

Commit 26d45d6

Browse files
authored
Merge pull request #969 from jeffhostetler/jeffhostetler/fixup_memihash_perf
fixup! name-hash: precompute hash values during preload-index
2 parents 08e752e + c7aba49 commit 26d45d6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

read-cache.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,7 @@ static struct cache_entry *create_alias_ce(struct index_state *istate,
616616
new = xcalloc(1, cache_entry_size(len));
617617
memcpy(new->name, alias->name, len);
618618
copy_cache_entry(new, ce);
619+
new->precompute_hash_state = 0;
619620
save_or_free_index_entry(istate, ce);
620621
return new;
621622
}

0 commit comments

Comments
 (0)