mirror of
https://github.com/git/git.git
synced 2026-01-31 13:03:13 +00:00
fixup! name-hash: precompute hash values during preload-index
This commit is contained in:
@@ -53,7 +53,7 @@ static struct dir_entry *hash_dir_entry(struct index_state *istate,
|
||||
int use_precomputed_dir_hash = 0;
|
||||
|
||||
if (ce->precompute_hash_state & CE_PRECOMPUTE_HASH_STATE__SET) {
|
||||
if (!ce->precompute_hash_state & CE_PRECOMPUTE_HASH_STATE__DIR)
|
||||
if (!(ce->precompute_hash_state & CE_PRECOMPUTE_HASH_STATE__DIR))
|
||||
return NULL; /* item does not have a parent directory */
|
||||
if (namelen == ce_namelen(ce)) {
|
||||
/* dir hash only valid for outer-most call (not recursive ones) */
|
||||
|
||||
Reference in New Issue
Block a user