From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS53758 23.128.96.0/24 X-Spam-Status: No, score=-4.2 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by dcvr.yhbt.net (Postfix) with ESMTP id EBE901F8C6 for ; Tue, 14 Sep 2021 20:33:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233855AbhINUfB (ORCPT ); Tue, 14 Sep 2021 16:35:01 -0400 Received: from pb-smtp1.pobox.com ([64.147.108.70]:52068 "EHLO pb-smtp1.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233476AbhINUfA (ORCPT ); Tue, 14 Sep 2021 16:35:00 -0400 Received: from pb-smtp1.pobox.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id 3CB55DEB44; Tue, 14 Sep 2021 16:33:42 -0400 (EDT) (envelope-from junio@pobox.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=Zo202rIkAP09jUcWP6k54rfOMz/SrXEgW2BLGe C6bgI=; b=xwmAoPEv0uVXXF6IgJtGFjvZnzaMWSh/lKVBIKqhJNgA4xFclARAtN Ct11UlGasbO69ruQD9JlWSRnNLFzHfFFPqq6jXNX4DF84ewgbMjEIP5BO7iSUWq/ mbn7sHssQrXiVZTx9UBZTfcNw0QAWIID8Wv4EtRifRkpEJWQK9oLE= Received: from pb-smtp1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id 335FCDEB43; Tue, 14 Sep 2021 16:33:42 -0400 (EDT) (envelope-from junio@pobox.com) Received: from pobox.com (unknown [34.73.10.127]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp1.pobox.com (Postfix) with ESMTPSA id 8DC2ADEB42; Tue, 14 Sep 2021 16:33:41 -0400 (EDT) (envelope-from junio@pobox.com) From: Junio C Hamano To: "Neeraj Singh via GitGitGadget" Cc: git@vger.kernel.org, Neeraj-Personal , Johannes Schindelin , Jeff King , Jeff Hostetler , Christoph Hellwig , =?utf-8?B?w4Z2YXIgQXJuZmrDtnLDsA==?= Bjarmason , "Randall S. Becker" , "Neeraj K. Singh" Subject: Re: [PATCH v3 2/6] core.fsyncobjectfiles: batched disk flushes References: Date: Tue, 14 Sep 2021 13:33:40 -0700 In-Reply-To: (Junio C. Hamano's message of "Tue, 14 Sep 2021 12:34:11 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Pobox-Relay-ID: 0C88B684-159B-11EC-A347-62A2C8D8090B-77302942!pb-smtp1.pobox.com Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Junio C Hamano writes: > Perhaps > > if (value && !strcmp(value, "batch")) > fsync_object_files = FSYNC_OBJECT_FILES_BATCH; > else if (git_config_bool(var, value)) > fsync_object_files = FSYNC_OBJECT_FILES_ON; > else > fsync_object_files = FSYNC_OBJECT_FILES_OFF; By the way, in case it wasn't clear, I do mean strcmp and not strcasecmp. Making these things that are meant to be machine readable tokens to be spelled in different ways in the name of "friendliness" is a disease. Thanks.