From: Nguyễn Thái Ngọc Duy Date: Sun, 8 Mar 2015 10:12:40 +0000 (+0700) Subject: untracked-cache: temporarily disable with $GIT_DISABLE_UNTRACKED_CACHE X-Git-Tag: v2.5.1~16^2~7 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/76e6b090a0b9b1e83b8e467d1b64f250f66c3f54?ds=inline;hp=-c untracked-cache: temporarily disable with $GIT_DISABLE_UNTRACKED_CACHE This can be used to double check if results with untracked cache are correctly, compared to vanilla version. Untracked cache remains in index, but not used. Signed-off-by: Nguyễn Thái Ngọc Duy Signed-off-by: Junio C Hamano --- 76e6b090a0b9b1e83b8e467d1b64f250f66c3f54 diff --git a/dir.c b/dir.c index 592b5fa795..2cf8f35cc7 100644 --- a/dir.c +++ b/dir.c @@ -1801,7 +1801,7 @@ static struct untracked_cache_dir *validate_untracked_cache(struct dir_struct *d struct untracked_cache_dir *root; int i; - if (!dir->untracked) + if (!dir->untracked || getenv("GIT_DISABLE_UNTRACKED_CACHE")) return NULL; /*