Skip to content

Commit 27dd460

Browse files
committed
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
2 parents 8e6e14f + f12f3b9 commit 27dd460

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cache.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,8 +1014,8 @@ enum fsync_component {
10141014
#define FSYNC_COMPONENTS_DERIVED_METADATA (FSYNC_COMPONENT_PACK_METADATA | \
10151015
FSYNC_COMPONENT_COMMIT_GRAPH)
10161016

1017-
#define FSYNC_COMPONENTS_DEFAULT (FSYNC_COMPONENTS_OBJECTS | \
1018-
FSYNC_COMPONENTS_DERIVED_METADATA | \
1017+
#define FSYNC_COMPONENTS_DEFAULT ((FSYNC_COMPONENTS_OBJECTS | \
1018+
FSYNC_COMPONENTS_DERIVED_METADATA) & \
10191019
~FSYNC_COMPONENT_LOOSE_OBJECT)
10201020

10211021
#define FSYNC_COMPONENTS_COMMITTED (FSYNC_COMPONENTS_OBJECTS | \

config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1695,7 +1695,7 @@ static int git_default_core_config(const char *var, const char *value, void *cb)
16951695

16961696
if (!strcmp(var, "core.fsyncobjectfiles")) {
16971697
if (fsync_object_files < 0)
1698-
warning(_("core.fsyncobjectfiles is deprecated; use core.fsync instead"));
1698+
warning(_("core.fsyncObjectFiles is deprecated; use core.fsync instead"));
16991699
fsync_object_files = git_config_bool(var, value);
17001700
return 0;
17011701
}

0 commit comments

Comments
 (0)