From patchwork Wed Mar 6 11:31:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Steinhardt X-Patchwork-Id: 13583955 Received: from fhigh4-smtp.messagingengine.com (fhigh4-smtp.messagingengine.com [103.168.172.155]) (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 012CD7FBC5 for ; Wed, 6 Mar 2024 11:31:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.155 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709724703; cv=none; b=EOmI1mm12HNG3z8r2mYSyGmX12kt/7LTxjAcbfnFZK0ZC8KzN3ZcPNl1t6TyLcvcnGTT9Sqfl32dsY0ccXKWqF3ZfHPgLcq4cA5DqCDDztbDrtuA0j88Ml1yW4Hvk0EvM09QJfRFEUzm/Mijl6tUzOgJe1Cl2nPSbFMIsaHKXho= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709724703; c=relaxed/simple; bh=B+pmX9y1AMaO3yw38gCrP9JwMRU/2MV2dOdSvvH7JOo=; h=Date:From:To:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=NBZ8bUZidlsxBrpiaILxl2dtrPoYxsoXPLh7ZXzORkoZqc7ulauCxao0YfUknnml+tfI+NdQ1sMzwbDW3VKg2MkEAvgXGPtQhiU35/cn0bFRcXpU0sbiO0lNqQ5yXbUqGAoEvN8IQ+qvAaZWJZetPbJvu5Xa2oJW+G7ZqHX5Fs4= 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=G0i72UGr; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=kBoVBPQX; arc=none smtp.client-ip=103.168.172.155 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="G0i72UGr"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="kBoVBPQX" Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 1E7E91140087 for ; Wed, 6 Mar 2024 06:31:41 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Wed, 06 Mar 2024 06:31:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pks.im; h=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=fm1; t=1709724701; x=1709811101; bh=n4amtdMpjF XUbqhAlpC7nT12kHAdrFTqr6WpcnrlAPU=; b=G0i72UGr2KWe/VxsPujhxZYD70 PcycdC2VC8CDKOXpRL+l5mPGqYWJV16/dMmcSo7x0NbRsdN/7TJfeR9V/fSnWuPX HOIwsB4wTgV0UP4AMCDr47c5p8S8tEXTKKvfAqO6Y4TFY1PmYHQrZFcg/+BqZqi6 aJNZ9vxqOFnylB7sMSQk4K/3X1BwAk7/KyHcBb+NU8Y/pUiLtiwbmbawGbQuBxrk xW2068zFfzps9RTNp/CxvtGOtXGwgHwZySniKUTQoOdcMfBnl4zqEWz5LDmB+aHI dVqC5fdO/YMix3YOIvuI+xeqhfkDMSJgQvNuzlr0HUlTQ6Kzq5NkA0RdQ0Xw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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= fm1; t=1709724701; x=1709811101; bh=n4amtdMpjFXUbqhAlpC7nT12kHAd rFTqr6WpcnrlAPU=; b=kBoVBPQXVxMRECCZyEVaLnKZho/Pd4p3VHnsTO+xBB5Q 93KqZRklsDYxEmGDuSoFCza9n2WplYbZbu4yvMxpw4F1L9sSznfAyaiQ3Nz5Alux YgfOuKYRqSf2VgUQHSk27R2q2sdgmv17wah2jRUCI6TVJJYqxL+iUyXG0xDhrj3+ mZQ8PmZhAgztzysXxh5QcLijDslFwTgaHGwecOsQewFulGbgh8bsTv7fsKTP1CfL 2xaussWDgtJwFdIxN/CEVFb4ukNprmrsS/OpjWKIeV5UH59B21oOGZg+BYYquqOP eH16U1Sa3PwFKGlSLse2N+t73c3MDoyxrchp18vd+w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledriedugddviecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfhfgggtuggjsehgtderre dttddvnecuhfhrohhmpefrrghtrhhitghkucfuthgvihhnhhgrrhguthcuoehpshesphhk shdrihhmqeenucggtffrrghtthgvrhhnpeehgefhtdefueffheekgfffudelffejtdfhvd ejkedthfehvdelgfetgfdvtedthfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgr mhepmhgrihhlfhhrohhmpehpshesphhkshdrihhm X-ME-Proxy: Feedback-ID: i197146af:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Wed, 6 Mar 2024 06:31:40 -0500 (EST) Received: by vm-mail (OpenSMTPD) with ESMTPSA id 53f4194d (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Wed, 6 Mar 2024 11:27:11 +0000 (UTC) Date: Wed, 6 Mar 2024 12:31:38 +0100 From: Patrick Steinhardt To: git@vger.kernel.org Subject: [PATCH 2/8] builtin/config: move "fixed-value" option to correct group Message-ID: <4c3655574ab7ef1eadf75aed883536204e542979.1709724089.git.ps@pks.im> 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(), };