]> git.ipfire.org Git - thirdparty/git.git/commit - git-compat-util.h
core.fsync: use batch mode and sync loose objects by default on Windows
authorNeeraj Singh <neerajsi@microsoft.com>
Tue, 5 Apr 2022 05:20:14 +0000 (22:20 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Apr 2022 20:13:26 +0000 (13:13 -0700)
commit8a94d833497f3b8232684271c80a7da56f930939
treef1f78807acd321877db3ea1294363e3b5c677826
parent425d290ce564ada84a5322545dbbd1866f2a29c4
core.fsync: use batch mode and sync loose objects by default on Windows

Git for Windows has defaulted to core.fsyncObjectFiles=true since
September 2017. We turn on syncing of loose object files with batch mode
in upstream Git so that we can get broad coverage of the new code
upstream.

We don't actually do fsyncs in the most of the test suite, since
GIT_TEST_FSYNC is set to 0. However, we do exercise all of the
surrounding batch mode code since GIT_TEST_FSYNC merely makes the
maybe_fsync wrapper always appear to succeed.

Signed-off-by: Neeraj Singh <neerajsi@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h
compat/mingw.h
config.c
git-compat-util.h