summaryrefslogtreecommitdiff
path: root/contrib/hooks/multimail
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2018-02-28 13:21:09 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-02-28 13:27:10 -0800
commit026336cb277693c5a8cdfa4705a26daf0a754328 (patch)
tree9667307626792a63ec204d7b3317e1287e8a8536 /contrib/hooks/multimail
parentdir.c: don't flag the index as dirty for changes to the untracked cache (diff)
downloadtgif-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 'contrib/hooks/multimail')
0 files changed, 0 insertions, 0 deletions