summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2015-03-08 10:12:40 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-03-12 20:45:17 (GMT)
commit76e6b090a0b9b1e83b8e467d1b64f250f66c3f54 (patch)
treed3ef48fd77dc0f8d676c46c4d6bc3f4df8257e22 /dir.c
parent1bbb3dba3fbf733db45f073ddafe89f5972c516a (diff)
downloadgit-76e6b090a0b9b1e83b8e467d1b64f250f66c3f54.zip
git-76e6b090a0b9b1e83b8e467d1b64f250f66c3f54.tar.gz
git-76e6b090a0b9b1e83b8e467d1b64f250f66c3f54.tar.bz2
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 592b5fa..2cf8f35 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;
/*