summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2015-03-08 17:12:40 +0700
committerJunio C Hamano <gitster@pobox.com>2015-03-12 13:45:17 -0700
commit76e6b090a0b9b1e83b8e467d1b64f250f66c3f54 (patch)
treed3ef48fd77dc0f8d676c46c4d6bc3f4df8257e22 /dir.c
parent1bbb3dba3fbf733db45f073ddafe89f5972c516a (diff)
downloadgit-76e6b090a0b9b1e83b8e467d1b64f250f66c3f54.tar.gz
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 <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c2
1 files changed, 1 insertions, 1 deletions
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;
/*