diff options
author | Junio C Hamano <junkio@cox.net> | 2006-04-23 16:52:35 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-04-23 20:18:57 -0700 |
commit | a52139b47e505e74e23a02f5324485e11dfe4ef9 (patch) | |
tree | a692d2dd1fea8cdb361caf03e90afec5ab8f72c5 /diff-lib.c | |
parent | Add cache-tree. (diff) | |
download | tgif-a52139b47e505e74e23a02f5324485e11dfe4ef9.tar.xz |
Update write-tree to use cache-tree.
The updated write-tree reads from $GIT_DIR/index.aux to pick up
subtree objects information, updates the cache-tree with the
index, and updates index.aux file after writing a tree out of
the index file.
Until update-index and other programs that modify the index are
updated to maintain index.aux file, the index.aux file written
by the last write-tree will become stale immediately after they
update the index, which will result in the whole tree
recomputation just like the original write-tree.
The idea is to convert those commands to invalidate cache-tree
whenever they touch the index entries, and write updated
index.aux out. After the index is updated with them, write-tree
will be able to reuse the parts of the cache-tree that have not
been touched.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'diff-lib.c')
0 files changed, 0 insertions, 0 deletions