From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from fhigh-a2-smtp.messagingengine.com (fhigh-a2-smtp.messagingengine.com [103.168.172.153]) (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 4CBDA413220 for ; Mon, 15 Jun 2026 17:03:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.153 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781543017; cv=none; b=jktjJ0ICG048PDqWbD7NMe8MmIE1i7IFDQTwZj6dnOzdcg4Fy23rbxZEjlJuarTHwO3gUeebd4Shxe/4dSiXCw/h+kHcDmjNnE+5SZiSEYCdqX2spwSBte0fbdMAi6Setz7CHYfwJrSqGJTg5CZU6vKGc3xlVHrXH3iqNly8hb0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781543017; c=relaxed/simple; bh=O103IGDtG9EVsqmwaLLpH1WeDv0y849xHeNsW5k3nJg=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=AUBzvsjvFGLlzn4QLFUqp1BH0ZE5HP3Twip3wlsPyn/E0gUZZxn62IK6t+Rl9BN+HEeysdtSAVUuW5FgLUDjHllnZ5EQf7IqBXWaAV8syE6kTeLZKHyLzaGpCbsNEJb0RU/L52oZwuUW2mAoMlQI+Cp4Pd8GMLQDgtBaUBpYTD8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=pobox.com; spf=pass smtp.mailfrom=pobox.com; dkim=pass (2048-bit key) header.d=pobox.com header.i=@pobox.com header.b=WOash/rv; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=B587fr1r; arc=none smtp.client-ip=103.168.172.153 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=pobox.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pobox.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=pobox.com header.i=@pobox.com header.b="WOash/rv"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="B587fr1r" Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfhigh.phl.internal (Postfix) with ESMTP id 8A927140004E; Mon, 15 Jun 2026 13:03:34 -0400 (EDT) Received: from phl-frontend-01 ([10.202.2.160]) by phl-compute-04.internal (MEProxy); Mon, 15 Jun 2026 13:03:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pobox.com; 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=fm3; t=1781543014; x=1781629414; bh=CZWgDUmCjs 8j0wq3pvZjwjZsAI8vWy9T9J2wZovNEi8=; b=WOash/rve+Iktz/cdOOLyt12Rf QKJnZGGTgrD1iiV9pBQIuMhZwGWS2NitDpPSegCM6TWRCNbHUxEUJjikdAKipMuj xQ2lkZ3Wb4E9kuHUgAVk0gRIJzQUGUoY7qlrMV58RgDsqzInQmhoQuBY2UctcUOQ 3HY58dDZ4TPxZGxG8yeJ+vaPzG5zYcmDHv3SV8H82QW+BsAgEjRApC9kDW2BTPtw ttFdlBC3lmErUKLFOjKdVYJseT6nj/G8SNwdoWe1gd932CxE9h69PFIXniTSmSav Rl+dXWm5gCFKFUkkF/gbo2L9ntYmCk1AhCTq//2bsnTvLjBK9NVaYvXPWA6w== 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-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1781543014; x=1781629414; bh=CZWgDUmCjs8j0w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EtapIdwYaPfHcelg4ZA X-ME-Proxy: Feedback-ID: if26b431b:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 15 Jun 2026 13:03:33 -0400 (EDT) From: Junio C Hamano To: Patrick Steinhardt Cc: git@vger.kernel.org Subject: Re: [PATCH v3] update-ref: add --rename option In-Reply-To: (Patrick Steinhardt's message of "Mon, 15 Jun 2026 10:57:48 +0200") References: Date: Mon, 15 Jun 2026 10:03:32 -0700 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Precedence: bulk X-Mailing-List: git@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Patrick Steinhardt writes: > On Fri, Jun 12, 2026 at 08:41:48AM -0700, Junio C Hamano wrote: >> Patrick Steinhardt writes: >> >> > A slight tangent: this is part of why I really don't like commands that >> > determine their mode via flags: you now have to worry about every >> > combination of flags and whether they even make sense. With subcommands >> > we at least only have to worry about the set of flags that directly >> > apply to that given subcommand. >> > >> > Makes me wonder whether I should have a look at extending git-refs(1) >> > further: >> > >> > git refs delete [] >> > git refs update [] >> > git refs rename >> > >> > I always wanted to do this eventually so that we have one top-level >> > command that knows how to do "everything refs". >> >> That may indeed be a better direction to go, but isn't update-ref >> the "everything refs" command already? > > Well, it doesn't handle reading references, which is something that > git-refs(1) already knows to do. OK, fair enough. "git refs" should become superset of "git show-ref" and "git update-ref", I guess. So do you want to take the topic over and add it to "git refs"?