core.fsync: fix incorrect expression for default configuration
PATCH 1/1 core.fsync: fix incorrect expression for default configuration
From: Neeraj Singh <[email protected]>
Commit b9f5d0358d2e882 introduced an incorrect value for FSYNC_COMPONENTS_DEFAULT. We need an AND-NOT rather than OR-NOT.
---
core.fsync: fix incorrect expression for default configuration
Commit b9f5d0358d2e882 introduced an incorrect value for FSYNC_COMPONENTS_DEFAULT. We need an AND-NOT rather than OR-NOT.
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-1191%2Fneerajsi-msft%2Fns%2Ffix-fsync-default-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-1191/neerajsi-msft/ns/fix-fsync-default-v1
Pull-Request: https://github.com/gitgitgadget/git/pull/1191
cache.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
cache.h +2 -2
@@ -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 | \
base-commit: 1d4f13e63720fb8eae39afa215199f7d77662dba
Signature · 1 line
gitgitgadget