summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorNeeraj Singh <neerajsi@microsoft.com>2022-03-15 19:12:45 (GMT)
committerJunio C Hamano <gitster@pobox.com>2022-03-15 19:32:55 (GMT)
commitb9f5d0358d2e882d47f496c1a5589f6cebc25578 (patch)
tree53f763c3f56323114359d1682322b6a4cea0906d /config.c
parentba95e96d4c6eed42e30ac3c8b260f4459e3a8575 (diff)
downloadgit-b9f5d0358d2e882d47f496c1a5589f6cebc25578.zip
git-b9f5d0358d2e882d47f496c1a5589f6cebc25578.tar.gz
git-b9f5d0358d2e882d47f496c1a5589f6cebc25578.tar.bz2
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 'config.c')
-rw-r--r--config.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/config.c b/config.c
index 80f33c9..fd8e165 100644
--- a/config.c
+++ b/config.c
@@ -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)