]> git.proxmox.com Git - libgit2.git/commit - src/libgit2/tree.c
index: write out the tree cache extension
authorCarlos Martín Nieto <cmn@dwim.me>
Sun, 28 Sep 2014 05:00:49 +0000 (07:00 +0200)
committerCarlos Martín Nieto <cmn@dwim.me>
Fri, 10 Oct 2014 17:43:42 +0000 (19:43 +0200)
commitc2f8b215937ed6f17dce94a4bde26d5c83b42533
treea8ec9796153969a8b857430fc1c04061026a731a
parent46bb00673013a7dae1ee81c484ac05c533ed1c4d
index: write out the tree cache extension

Keeping the cache around after read-tree is only one part of the
optimisation opportunities. In order to share the cache between program
instances, we need to write the TREE extension to the index.

Do so, taking the opportunity to rename 'entries' to 'entry_count' to
match the name given in the format description. The included test is
rather trivial, but works as a sanity check.
src/index.c
src/tree-cache.c
src/tree-cache.h
src/tree.c
tests/index/cache.c