summaryrefslogtreecommitdiff
path: root/tests/clone
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2014-10-22 21:09:31 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2014-10-22 21:25:08 +0200
commitbb0757d56c7a2f0d337f1e22f9796f4090866480 (patch)
tree193a59f31bf3c257bc6af4ba4a756adbce4a98b6 /tests/clone
parent12e1803188407e6ee18b9bd22186dd5d02c8ba78 (diff)
downloadlibgit2-bb0757d56c7a2f0d337f1e22f9796f4090866480.tar.gz
tree-cache: correct the entry_count calculation
The entry_count field is the amount of index entries covered by a particular cache entry, that is how many files are there (recursively) under a particular directory. The current code that attemps to do this is severely defincient and is trying to count the amount of children, which always comes up to zero. We don't even need to recount, since we have the information during the cache creation. We can take that number and keep it, as we only ever invalidate or replace.
Diffstat (limited to 'tests/clone')
0 files changed, 0 insertions, 0 deletions