From patchwork Wed Mar 27 08:46:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Steinhardt X-Patchwork-Id: 13605950 Received: from fout7-smtp.messagingengine.com (fout7-smtp.messagingengine.com [103.168.172.150]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D260D36AF2 for ; Wed, 27 Mar 2024 08:46:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.150 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711529183; cv=none; b=a2WgM4MbaK40lteiXpu0OW0m55IVxTATlPZ8+wzsfHTYAQxr2O9YnANyFbh3Tz6KKRibT33JHiNFJ920fcDf0/al0BLq4H4HCHvME4SrFHSZ1v3WvwkfI2Yblui+qnPOB8REyg4BoKUQPjfOMtVFQCAaerAH/jjMeSKi0XM+XCM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711529183; c=relaxed/simple; bh=/rLmN3QTBnLEvYSi2snJW9OwpBF5jH9k+YW3/JrgSDs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=WQ+9qKoTDkd1vfoH45Gy3QYize/Oy6HQASgdoj4nxGVZAzojt1SY4Y7ozIPDDTc3l+K3OAKOzYlyGXed4L8lui42Nqu3KYYeL4av9oaJ/fUgPueY1gnFH7nUUSjsYY9jN8RnTv+nvDhIV+idW6wCGOxqynbjmYOcEntGOV99XV8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pks.im; spf=pass smtp.mailfrom=pks.im; dkim=pass (2048-bit key) header.d=pks.im header.i=@pks.im header.b=DIyc914N; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=wpURbxTJ; arc=none smtp.client-ip=103.168.172.150 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pks.im Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pks.im Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=pks.im header.i=@pks.im header.b="DIyc914N"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="wpURbxTJ" Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfout.nyi.internal (Postfix) with ESMTP id D6715138015D; Wed, 27 Mar 2024 04:46:20 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Wed, 27 Mar 2024 04:46:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pks.im; h=cc:cc :content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1711529180; x=1711615580; bh=VTT50xVHGw /CuyLD27jjlSMxuLO3OB4s+fDOaHqTI2Y=; b=DIyc914NpKdoNHnUODfC9j/dLS SH524ZFO8iWoQ7ZBM1upVzIk/+ErOKQvD+niqcnXgJNzML5N8zugLFc9gsdY7BgY mdrY48tKTymsAG5LcHdK7fi7xmHxRKGRMN38blgOpPduM0e60fXAs356HRN6vDoN D05N57gc5e/Pq53UAetrcfC5ZOSxHiOME6wrMvcQ4t54y65Jd012BkoRhMqGWCBs LLzwUkfaiLi/O4sdklatGy4DAtl6Ivn/zXXU8gP57k2g7a9LdxRant7/zdny+WIv y8CV1e6iyQhVMT0KxnxjcEYc2zqI0mCtx5h/zjNFYX0n5HayG6imwy9c247Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1711529180; x=1711615580; bh=VTT50xVHGw/CuyLD27jjlSMxuLO3 OB4s+fDOaHqTI2Y=; b=wpURbxTJ5FNRX5XTwaqYEMPz1Y1TvilRwnWZhMPSS0Iz W0LiSoA27z0dlMvCvaLmmHY0jYwkN4BJHJBGb8igUqnRh0m6XPih5S9ftUOPwkFJ u3Oph3mFtiRno3tYuGPf+Dnf5UjQKFQ5UYqkJY6WssOCVt3tAgSyywYrTqxbLdUh 67TEaaBMWkg7AV9ztccS6wVwmIXWDug6M7EDl586tHlI4RWE+hWCiRTf6AzM7i5/ AK8phS5Mu2V+75khWZHL40gkdR+BvpPJa1YQQTCgbRfmFNEAm/rnywtDalZzqZwk yQgPOzptjjQzWon7+Rk1gJfeNKNkdO5xNPwBHd8lGQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledruddugedguddvgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvvefukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpefrrght rhhitghkucfuthgvihhnhhgrrhguthcuoehpshesphhkshdrihhmqeenucggtffrrghtth gvrhhnpeeukedtvedtffevleejtefgheehieegkeeluddvfeefgeehgfeltddtheejleff teenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpsh esphhkshdrihhm X-ME-Proxy: Feedback-ID: i197146af:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 27 Mar 2024 04:46:19 -0400 (EDT) Received: by vm-mail (OpenSMTPD) with ESMTPSA id 1362d847 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 27 Mar 2024 08:46:06 +0000 (UTC) Date: Wed, 27 Mar 2024 09:46:17 +0100 From: Patrick Steinhardt To: git@vger.kernel.org Cc: Kristoffer Haugsbakk , Taylor Blau , =?iso-8859-1?q?Jean-No=EBl?= AVILA , Eric Sunshine , Junio C Hamano Subject: [PATCH v3 02/13] builtin/config: move "fixed-value" option to correct group Message-ID: References: Precedence: bulk X-Mailing-List: git@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: The `--fixed-value` option can be used to alter how the value-pattern parameter is interpreted for the various submodes of git-config(1). But while it is an option, it is currently listed as part of the submodes group the command, which is wrong. Move the option to the "Other" group, which hosts the various options known to git-config(1). Signed-off-by: Patrick Steinhardt --- builtin/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/config.c b/builtin/config.c index 6eb6aff917..fcd6190f12 100644 --- a/builtin/config.c +++ b/builtin/config.c @@ -642,7 +642,6 @@ static struct option builtin_config_options[] = { OPT_BIT(0, "rename-section", &actions, N_("rename section: old-name new-name"), ACTION_RENAME_SECTION), OPT_BIT(0, "remove-section", &actions, N_("remove a section: name"), ACTION_REMOVE_SECTION), OPT_BIT('l', "list", &actions, N_("list all"), ACTION_LIST), - OPT_BOOL(0, "fixed-value", &fixed_value, N_("use string equality when comparing values to 'value-pattern'")), OPT_BIT('e', "edit", &actions, N_("open an editor"), ACTION_EDIT), OPT_BIT(0, "get-color", &actions, N_("find the color configured: slot [default]"), ACTION_GET_COLOR), OPT_BIT(0, "get-colorbool", &actions, N_("find the color setting: slot [stdout-is-tty]"), ACTION_GET_COLORBOOL), @@ -661,6 +660,7 @@ static struct option builtin_config_options[] = { OPT_BOOL(0, "show-origin", &show_origin, N_("show origin of config (file, standard input, blob, command line)")), OPT_BOOL(0, "show-scope", &show_scope, N_("show scope of config (worktree, local, global, system, command)")), OPT_STRING(0, "default", &default_value, N_("value"), N_("with --get, use default value when missing entry")), + OPT_BOOL(0, "fixed-value", &fixed_value, N_("use string equality when comparing values to 'value-pattern'")), OPT_END(), };