diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-02-28 13:21:09 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-02-28 13:27:10 -0800 |
commit | 026336cb277693c5a8cdfa4705a26daf0a754328 (patch) | |
tree | 9667307626792a63ec204d7b3317e1287e8a8536 /t/t0055-beyond-symlinks.sh | |
parent | dir.c: don't flag the index as dirty for changes to the untracked cache (diff) | |
download | tgif-026336cb277693c5a8cdfa4705a26daf0a754328.tar.xz |
untracked cache: use git_env_bool() not getenv() for customization
GIT_DISABLE_UNTRACKED_CACHE and GIT_TEST_UNTRACKED_CACHE are only
sensed for their presense by using getenv(); use git_env_bool()
instead so that GIT_DISABLE_UNTRACKED_CACHE=false would work as
naïvely expected.
Also rename GIT_TEST_UNTRACKED_CACHE to GIT_FORCE_UNTRACKED_CACHE
to express what it does more honestly. Forcing its use may be one
useful thing to do while testing the feature, but testing does not
have to be the only use of the knob.
While at it, avoid repeated calls to git_env_bool() by capturing the
return value from the first call in a static variable.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t0055-beyond-symlinks.sh')
0 files changed, 0 insertions, 0 deletions