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: AS3215 2.6.0.0/16 X-Spam-Status: No, score=-3.1 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS,URIBL_BLACK shortcircuit=no autolearn=no autolearn_force=no version=3.4.2 Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by dcvr.yhbt.net (Postfix) with ESMTP id E64211F403 for ; Fri, 14 Oct 2022 15:38:11 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; unprotected) header.d=pobox.com header.i=@pobox.com header.b="c8eHxgS3"; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230480AbiJNPh5 (ORCPT ); Fri, 14 Oct 2022 11:37:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230504AbiJNPhx (ORCPT ); Fri, 14 Oct 2022 11:37:53 -0400 Received: from pb-smtp21.pobox.com (pb-smtp21.pobox.com [173.228.157.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96BD71793BA for ; Fri, 14 Oct 2022 08:37:51 -0700 (PDT) Received: from pb-smtp21.pobox.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id D7F961C0EC6; Fri, 14 Oct 2022 11:37:50 -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=hqzD9CeBB2n1eB/5UT51EfKnnRJaLlIVk4J/LM E352k=; b=c8eHxgS3+Ao0JtTZ186vEfgjieW0OFztEAttunIxktO0uqwmr6+PmY t++eeSKOoGFIoyjxJv3FB5UN74Zj9/ntsLnQsa6w32pOQh8Yf2ZxmStZJldXexUf pe/0iXJU3A+LAW/n9n8eNUYcU4IvbfkZCHGcZ46h5ECfS9tor2RlU= Received: from pb-smtp21.sea.icgroup.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id CF58D1C0EC5; Fri, 14 Oct 2022 11:37:50 -0400 (EDT) (envelope-from junio@pobox.com) Received: from pobox.com (unknown [34.83.5.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp21.pobox.com (Postfix) with ESMTPSA id 8A6821C0EC4; Fri, 14 Oct 2022 11:37:47 -0400 (EDT) (envelope-from junio@pobox.com) From: Junio C Hamano To: Tao Klerks Cc: Tao Klerks via GitGitGadget , git@vger.kernel.org Subject: Re: [PATCH] mergetool: new config guiDefault supports auto-toggling gui by DISPLAY References: Date: Fri, 14 Oct 2022 08:37:46 -0700 In-Reply-To: (Tao Klerks's message of "Fri, 14 Oct 2022 14:32:47 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Pobox-Relay-ID: 277AF7B4-4BD6-11ED-BCB1-B31D44D1D7AA-77302942!pb-smtp21.pobox.com Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Tao Klerks writes: > My understanding, from ad-hoc testing, is that using OPT_BOOL causes > the target variable ("use_gui_tool" in this case) to *always* be set > to either "1" or "0", regardless of whether the user sets the main > flag, the --no form of the flag, or sets nothing at all. You are saying "git gc --keep-largest-pack" is broken ;-) OPT_BOOL() and OPT_BOOL_F() are OPT_SET_INT() in disguise and there is no "set to this default value if no command line option is given" involved. At least I do not recall allowing such a code in. Thanks.