summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-04-04 10:56:22 -0700
committerJunio C Hamano <gitster@pobox.com>2022-04-04 10:56:22 -0700
commit27dd46079980a8f80c5e70bc8fa5ee4c9b54995e (patch)
treede86dda86188f9857ed7ece010db74a678767698
parent8e6e14fceab69c9aec939e67107cdbf539725815 (diff)
parentf12f3b9807accc0b4ae2b5ebde937fbbb6de7c99 (diff)
Merge branch 'ns/core-fsyncmethod'
A couple of fix-up to a topic that is now in 'master'. * ns/core-fsyncmethod: core.fsyncmethod: correctly camel-case warning message core.fsync: fix incorrect expression for default configuration
-rw-r--r--cache.h4
-rw-r--r--config.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/cache.h b/cache.h
index ef7d34b7a0..ee9549c460 100644
--- a/cache.h
+++ b/cache.h
@@ -1014,8 +1014,8 @@ enum fsync_component {
#define FSYNC_COMPONENTS_DERIVED_METADATA (FSYNC_COMPONENT_PACK_METADATA | \
FSYNC_COMPONENT_COMMIT_GRAPH)
-#define FSYNC_COMPONENTS_DEFAULT (FSYNC_COMPONENTS_OBJECTS | \
- FSYNC_COMPONENTS_DERIVED_METADATA | \
+#define FSYNC_COMPONENTS_DEFAULT ((FSYNC_COMPONENTS_OBJECTS | \
+ FSYNC_COMPONENTS_DERIVED_METADATA) & \
~FSYNC_COMPONENT_LOOSE_OBJECT)
#define FSYNC_COMPONENTS_COMMITTED (FSYNC_COMPONENTS_OBJECTS | \
diff --git a/config.c b/config.c
index 3c9b6b589a..9eb0dbb448 100644
--- a/config.c
+++ b/config.c
@@ -1695,7 +1695,7 @@ static int git_default_core_config(const char *var, const char *value, void *cb)
if (!strcmp(var, "core.fsyncobjectfiles")) {
if (fsync_object_files < 0)
- warning(_("core.fsyncobjectfiles is deprecated; use core.fsync instead"));
+ warning(_("core.fsyncObjectFiles is deprecated; use core.fsync instead"));
fsync_object_files = git_config_bool(var, value);
return 0;
}