Re: [PATCH v3 1/2] cache-tree: invalidate i-t-a paths after generating trees

2012-12-14 Thread Nguyen Thai Ngoc Duy
On Thu, Dec 13, 2012 at 9:04 AM, Junio C Hamano wrote: >> @@ -324,7 +325,14 @@ static int update_one(struct cache_tree *it, >> if (!sub) >> die("cache-tree.c: '%.*s' in '%s' not found", >> entlen, path + baselen,

Re: [PATCH v3 1/2] cache-tree: invalidate i-t-a paths after generating trees

2012-12-12 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > Intent-to-add entries used to forbid writing trees so it was not a > problem. After commit 3f6d56d (commit: ignore intent-to-add entries > instead of refusing - 2012-02-07), we can generate trees from an index > with i-t-a entries. > > However, the commit forgets t

[PATCH v3 1/2] cache-tree: invalidate i-t-a paths after generating trees

2012-12-12 Thread Nguyễn Thái Ngọc Duy
Intent-to-add entries used to forbid writing trees so it was not a problem. After commit 3f6d56d (commit: ignore intent-to-add entries instead of refusing - 2012-02-07), we can generate trees from an index with i-t-a entries. However, the commit forgets to invalidate all paths leading to i-t-a ent