summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorNeeraj Singh <neerajsi@microsoft.com>2022-03-29 21:41:52 (GMT)
committerJunio C Hamano <gitster@pobox.com>2022-03-29 23:04:16 (GMT)
commite5ec440c982417d39908b9a4bab79523a6a37f6c (patch)
tree3d73046c19cbf583617afe9d71b88ba216776e1d /cache.h
parentb9f5d0358d2e882d47f496c1a5589f6cebc25578 (diff)
downloadgit-e5ec440c982417d39908b9a4bab79523a6a37f6c.zip
git-e5ec440c982417d39908b9a4bab79523a6a37f6c.tar.gz
git-e5ec440c982417d39908b9a4bab79523a6a37f6c.tar.bz2
core.fsync: fix incorrect expression for default configuration
Commit b9f5d035 (core.fsync: documentation and user-friendly aggregate options, 2022-03-15) introduced an incorrect value for FSYNC_COMPONENTS_DEFAULT. We need an AND-NOT rather than OR-NOT. Signed-off-by: Neeraj Singh <neerajsi@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/cache.h b/cache.h
index 86680f1..e0b7415 100644
--- a/cache.h
+++ b/cache.h
@@ -1013,8 +1013,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)