Skip to content

Commit 76e6b09

Browse files
pcloudsgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 1bbb3db commit 76e6b09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1801,7 +1801,7 @@ static struct untracked_cache_dir *validate_untracked_cache(struct dir_struct *d
18011801
struct untracked_cache_dir *root;
18021802
int i;
18031803

1804-
if (!dir->untracked)
1804+
if (!dir->untracked || getenv("GIT_DISABLE_UNTRACKED_CACHE"))
18051805
return NULL;
18061806

18071807
/*

0 commit comments

Comments
 (0)