summaryrefslogtreecommitdiff
path: root/sparse-index.h
diff options
context:
space:
mode:
authorDerrick Stolee <dstolee@microsoft.com>2021-04-12 21:08:15 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-04-14 20:47:51 (GMT)
commit5f116695864788d1fe45ff06bfad7a71a8d98d0a (patch)
treeaaa2db037b12ac8c8a8c00a9c425438d757ac0c3 /sparse-index.h
parentf5fed74fb2eac4d7c6fd4b09f2167b83942c0f13 (diff)
downloadgit-5f116695864788d1fe45ff06bfad7a71a8d98d0a.zip
git-5f116695864788d1fe45ff06bfad7a71a8d98d0a.tar.gz
git-5f116695864788d1fe45ff06bfad7a71a8d98d0a.tar.bz2
name-hash: don't add directories to name_hash
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: Derrick Stolee <dstolee@microsoft.com> Reviewed-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sparse-index.h')
0 files changed, 0 insertions, 0 deletions