Re: [PATCH 06/19] untracked cache: record/validate dir mtime and reuse cached output

2014-10-30 Thread Eric Sunshine
On Mon, Oct 27, 2014 at 8:10 AM, Nguyễn Thái Ngọc Duy pclo...@gmail.com wrote: diff --git a/dir.c b/dir.c index 2793e57..55780a7 100644 --- a/dir.c +++ b/dir.c @@ -37,7 +37,12 @@ enum path_treatment { +static enum path_treatment treat_path_fast(struct dir_struct *dir, +

[PATCH 06/19] untracked cache: record/validate dir mtime and reuse cached output

2014-10-27 Thread Nguyễn Thái Ngọc Duy
The main readdir loop in read_directory_recursive() is replaced with a new one that checks if cached results of a directory is still valid. If a file is added or removed from the index, the containing directory is invalidated (but not its subdirs). If directory's mtime is changed, the same