diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-03-26 00:38:24 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-03-26 00:38:24 +0100 |
commit | eb804cd405618ef78b772072685c39392aea4ac1 (patch) | |
tree | c86dd22ade3bf93d03d9ac01c507c6254c8fee7a /environment.c | |
parent | The 14th batch (diff) | |
parent | core.fsync: documentation and user-friendly aggregate options (diff) | |
download | git-eb804cd405618ef78b772072685c39392aea4ac1.tar.xz git-eb804cd405618ef78b772072685c39392aea4ac1.zip |
Merge branch 'ns/core-fsyncmethod'
Replace core.fsyncObjectFiles with two new configuration variables,
core.fsync and core.fsyncMethod.
* ns/core-fsyncmethod:
core.fsync: documentation and user-friendly aggregate options
core.fsync: new option to harden the index
core.fsync: add configuration parsing
core.fsync: introduce granular fsync control infrastructure
core.fsyncmethod: add writeout-only mode
wrapper: make inclusion of Windows csprng header tightly scoped
Diffstat (limited to 'environment.c')
-rw-r--r-- | environment.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/environment.c b/environment.c index fb55bf6129..f27e235548 100644 --- a/environment.c +++ b/environment.c @@ -42,8 +42,10 @@ const char *git_attributes_file; const char *git_hooks_path; int zlib_compression_level = Z_BEST_SPEED; int pack_compression_level = Z_DEFAULT_COMPRESSION; -int fsync_object_files; +int fsync_object_files = -1; int use_fsync = -1; +enum fsync_method fsync_method = FSYNC_METHOD_DEFAULT; +enum fsync_component fsync_components = FSYNC_COMPONENTS_DEFAULT; size_t packed_git_window_size = DEFAULT_PACKED_GIT_WINDOW_SIZE; size_t packed_git_limit = DEFAULT_PACKED_GIT_LIMIT; size_t delta_base_cache_limit = 96 * 1024 * 1024; |