git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] core.fsync: fix incorrect expression for default configuration

From
NGNeeraj K. Singh via GitGitGadget <gitgitgadget@gmail.com>
Date
Mar 29, 2022, 21:41 UTC
Message-ID
<pull.1191.git.1648590113062.gitgitgadget@gmail.com>
From: Neeraj Singh <neerajsi@microsoft.com>

Commit b9f5d0358d2e882 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>
---
    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.
    
    Signed-off-by: Neeraj Singh neerajsi@microsoft.com
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(-)
diff --git a/cache.h b/cache.h
index ef7d34b7a09..ee9549c4601 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 | \

base-commit: 1d4f13e63720fb8eae39afa215199f7d77662dba
-- 
gitgitgadget
Message 1 of 1 in “core.fsync: fix incorrect expression for default configuration”
  1. core.fsync: fix incorrect expression for default configurationNeeraj K. Singh via GitGitGadget, Mar 29, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.