diff options
author | Alex Mironov <alexandrfox@gmail.com> | 2025-05-21 21:29:31 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2025-05-21 14:51:08 -0700 |
commit | 2e60aabc759e3467e21a98f4e739c5e9f221cd9f (patch) | |
tree | ccb5a7f5160d2b63c3d9b48c74dd87799df27c1f /commit.c | |
parent | d50a5e8939abfc07c2ff97ae72e9330939b36ee0 (diff) |
name-hash: don't add sparse directories in threaded lazy init
Ensure that logic added in 5f11669586 (name-hash: don't add directories
to name_hash, 2021-04-12) also applies in multithreaded hashtable init
path.
As per the original single-threaded change above: sparse directory entries
represent a directory that is outside the sparse-checkout definition.
These are not paths to blobs, so should not be added to the name_hash
table. Instead, they should be added to the directory hashtable when
'ignore_case' is true.
Add a condition to avoid placing sparse directories into the name_hash
hashtable. This avoids filling the table with extra entries that will
never be queried.
Signed-off-by: Alex Mironov <alexandrfox@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions