Re: [PATCH v7 09/11] config: add core.untrackedCache

2016-01-25 Thread Christian Couder
On Mon, Jan 25, 2016 at 9:47 PM, Junio C Hamano wrote: > Christian Couder writes: > >> diff --git a/read-cache.c b/read-cache.c >> index 5be7cd1..a04ec8c 100644 >> --- a/read-cache.c >> +++ b/read-cache.c >> @@ -1497,10 +1497,23 @@ static struct cache_entry *create_from_disk(struct >> ondisk_cac

Re: [PATCH v7 09/11] config: add core.untrackedCache

2016-01-25 Thread Junio C Hamano
Christian Couder writes: > diff --git a/read-cache.c b/read-cache.c > index 5be7cd1..a04ec8c 100644 > --- a/read-cache.c > +++ b/read-cache.c > @@ -1497,10 +1497,23 @@ static struct cache_entry *create_from_disk(struct > ondisk_cache_entry *ondisk, > return ce; > } > > -static void chec

[PATCH v7 09/11] config: add core.untrackedCache

2016-01-24 Thread Christian Couder
When we know that mtime on directory as given by the environment is usable for the purpose of untracked cache, we may want the untracked cache to be always used without any mtime test or kernel name check being performed. Also when we know that mtime is not usable for the purpose of untracked cach