Re: [PATCH] cache-tree: invalidate i-t-a paths after writing trees

2012-11-29 Thread Nguyen Thai Ngoc Duy
On Fri, Nov 30, 2012 at 7:06 AM, Junio C Hamano wrote: > Nguyen Thai Ngoc Duy writes: > >>> An alternative might be to add a "phoney" bit next to "used" in the >>> cache_tree structure, mark the cache tree as phoney when we skip an >>> entry marked as CE_REMOVE or CE_ITA, and make the postprocess

Re: [PATCH] cache-tree: invalidate i-t-a paths after writing trees

2012-11-29 Thread Junio C Hamano
Nguyen Thai Ngoc Duy writes: >> An alternative might be to add a "phoney" bit next to "used" in the >> cache_tree structure, mark the cache tree as phoney when we skip an >> entry marked as CE_REMOVE or CE_ITA, and make the postprocessing >> loop this patch adds aware of that bit, instead of iter

Re: [PATCH] cache-tree: invalidate i-t-a paths after writing trees

2012-11-10 Thread Nguyen Thai Ngoc Duy
On Fri, Nov 9, 2012 at 6:57 PM, Junio C Hamano wrote: > Nguyễn Thái Ngọc Duy writes: > >> diff --git a/cache-tree.c b/cache-tree.c >> index 28ed657..30a8018 100644 >> --- a/cache-tree.c >> +++ b/cache-tree.c >> @@ -381,6 +381,9 @@ int cache_tree_update(struct cache_tree *it, >> i = update_

Re: [PATCH] cache-tree: invalidate i-t-a paths after writing trees

2012-11-09 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > diff --git a/cache-tree.c b/cache-tree.c > index 28ed657..30a8018 100644 > --- a/cache-tree.c > +++ b/cache-tree.c > @@ -381,6 +381,9 @@ int cache_tree_update(struct cache_tree *it, > i = update_one(it, cache, entries, "", 0, flags); > if (i < 0) >