read-tree: teach 1-way merege and plain read to prime cache-tree.
authorJunio C Hamano <junkio@cox.net>
Thu, 27 Apr 2006 08:33:07 +0000 (01:33 -0700)
committerJunio C Hamano <junkio@cox.net>
Thu, 27 Apr 2006 08:33:07 +0000 (01:33 -0700)
commit7927a55d5bde25702dca4fb1a7d6eb7ef61110ba
treeed3c465e99f20045c9e5e85d4123e2820a097066
parentb34c39cf31e370dad3bcfba29ee8cd023c40fd6b
read-tree: teach 1-way merege and plain read to prime cache-tree.

This teaches read-tree to fully populate valid cache-tree when
reading a tree from scratch, or reading a single tree into an
existing index, reusing only the cached stat information (i.e.
one-way merge).  We have already taught update-index about cache-tree,
so "git checkout" followed by updates to a few path followed by
a "git commit" would become very efficient.

Signed-off-by: Junio C Hamano <junkio@cox.net>
cache-tree.c
cache-tree.h
read-tree.c