summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Nguyễn Thái Ngọc Duy <pclouds@gmail.com>2015-03-08 17:12:40 +0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-03-12 13:45:17 -0700
commit76e6b090a0b9b1e83b8e467d1b64f250f66c3f54 (patch)
treed3ef48fd77dc0f8d676c46c4d6bc3f4df8257e22
parentuntracked cache: mark index dirty if untracked cache is updated (diff)
downloadtgif-76e6b090a0b9b1e83b8e467d1b64f250f66c3f54.tar.xz
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>
-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;
/*