diff options
author | Junio C Hamano <junkio@cox.net> | 2006-04-27 00:13:34 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-04-27 00:34:12 -0700 |
commit | b34c39cf31e370dad3bcfba29ee8cd023c40fd6b (patch) | |
tree | fc87c8293aefebb4a7a4da0733cffdb36768ffa9 /pack-check.c | |
parent | update-index: when --unresolve, smudge the relevant cache-tree entries. (diff) | |
download | tgif-b34c39cf31e370dad3bcfba29ee8cd023c40fd6b.tar.xz |
read-tree: teach 1 and 2 way merges about cache-tree.
This teaches one-way and two-way "read-tree -m" (and its special
form, "read-tree --reset" as well) not to discard cache-tree but
invalidate only the changed parts of the tree. When switching
between related branches, this helps the eventual commit
(i.e. write-tree) by keeping cache-tree valid as much as
possible.
This does not prime cache-tree yet, but we ought to be able to
do that for no-merge (i.e. reading from a tree object) case and,
and also perhaps 1 way merge case.
With this patch applied, switching between the tip of Linux 2.6
kernel tree and a branch that touches one path (fs/ext3/Makefile)
from it invalidates only 3 paths out of 1201 cache-tree entries
in the index, and subsequent write-tree takes about a half as
much time as before.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'pack-check.c')
0 files changed, 0 insertions, 0 deletions