diff options
author | Derrick Stolee <dstolee@microsoft.com> | 2021-03-30 13:11:02 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-03-30 12:57:48 -0700 |
commit | 2de37c536d54a28a032491ad4ef97632ef6ab836 (patch) | |
tree | e9eb29e598eb4cbb34ac3609ad9fe1189642fb61 /reflog-walk.h | |
parent | dcc5fd5fd26b71d75f9e70abd0e09e553b5f40ca (diff) | |
download | git-2de37c536d54a28a032491ad4ef97632ef6ab836.tar.gz |
cache-tree: integrate with sparse directory entries
The cache-tree extension was previously disabled with sparse indexes.
However, the cache-tree is an important performance feature for commands
like 'git status' and 'git add'. Integrate it with sparse directory
entries.
When writing a sparse index, completely clear and recalculate the cache
tree. By starting from scratch, the only integration necessary is to
check if we hit a sparse directory entry and create a leaf of the
cache-tree that has an entry_count of one and no subtrees.
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'reflog-walk.h')
0 files changed, 0 insertions, 0 deletions