]> git.ipfire.org Git - thirdparty/git.git/commit
environ: GIT_FLUSH should be made a usual Boolean
authorJunio C Hamano <gitster@pobox.com>
Thu, 15 Sep 2022 16:06:57 +0000 (09:06 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 15 Sep 2022 18:34:51 +0000 (11:34 -0700)
commitfd01795beb1bda7aa738b443bcb01cc9df70059a
tree66fceda921750dcac253ccdaa5d7e60f93ae792f
parent80f0b3f397d6467cb6f6fc9456b867aaffdc9b8c
environ: GIT_FLUSH should be made a usual Boolean

This uses atoi() and checks if the result is not zero to decide what
to do.  Turning it into the usual Boolean environment variable to
use git_env_bool() would not break those who have been using "set to
0, or set to non-zero, that can be parsed with atoi()" values, but
will match the expectation of those who expected "true" to mean
"yes".

Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git.txt
write-or-die.c