]> git.ipfire.org Git - thirdparty/git.git/commit
write-or-die: make GIT_FLUSH a Boolean environment variable
authorChandra Pratap <chandrapratap3519@gmail.com>
Thu, 4 Jan 2024 10:20:17 +0000 (10:20 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 4 Jan 2024 18:32:21 +0000 (10:32 -0800)
commit556e68032f8248c831e48207e5cb923c9fe0e42c
tree89003bcf47137e48f500210811d20594ed99338e
parent564d0252ca632e0264ed670534a51d18a689ef5d
write-or-die: make GIT_FLUSH a Boolean environment variable

Among Git's environment variables, the ones marked as "Boolean"
accept values in a way similar to Boolean configuration variables,
i.e. values like 'yes', 'on', 'true' and positive numbers are
taken as "on" and values like 'no', 'off', 'false' are taken as
"off".

GIT_FLUSH can be used to force Git to use non-buffered I/O when
writing to stdout. It can only accept two values, '1' which causes
Git to flush more often and '0' which makes all output buffered.
Make GIT_FLUSH accept more values besides '0' and '1' by turning it
into a Boolean environment variable, modifying the required logic.
Update the related documentation.

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