diff options
author | Neeraj Singh <neerajsi@microsoft.com> | 2022-03-15 20:12:45 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-03-15 20:32:55 +0100 |
commit | b9f5d0358d2e882d47f496c1a5589f6cebc25578 (patch) | |
tree | 53f763c3f56323114359d1682322b6a4cea0906d /config.c | |
parent | core.fsync: new option to harden the index (diff) | |
download | git-b9f5d0358d2e882d47f496c1a5589f6cebc25578.tar.xz git-b9f5d0358d2e882d47f496c1a5589f6cebc25578.zip |
core.fsync: documentation and user-friendly aggregate options
This commit adds aggregate options for the core.fsync setting that are
more user-friendly. These options are specified in terms of 'levels of
safety', indicating which Git operations are considered to be sync
points for durability.
The new documentation is also included here in its entirety for ease of
review.
Signed-off-by: Neeraj Singh <neerajsi@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '')
-rw-r--r-- | config.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1332,6 +1332,11 @@ static const struct fsync_component_name { { "pack-metadata", FSYNC_COMPONENT_PACK_METADATA }, { "commit-graph", FSYNC_COMPONENT_COMMIT_GRAPH }, { "index", FSYNC_COMPONENT_INDEX }, + { "objects", FSYNC_COMPONENTS_OBJECTS }, + { "derived-metadata", FSYNC_COMPONENTS_DERIVED_METADATA }, + { "committed", FSYNC_COMPONENTS_COMMITTED }, + { "added", FSYNC_COMPONENTS_ADDED }, + { "all", FSYNC_COMPONENTS_ALL }, }; static enum fsync_component parse_fsync_components(const char *var, const char *string) |