From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from fout-b7-smtp.messagingengine.com (fout-b7-smtp.messagingengine.com [202.12.124.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 B291410F1 for ; Mon, 2 Feb 2026 12:32:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.12.124.150 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770035546; cv=none; b=mln0dZUBh1d9CiH+jIBnXNCeAhdWGxwyJJ4PGPAkmXBK9Sw1DWlGH2Vts/7uIbNJiTPSbvED3QpC+Atq6hsWwByK5z5+vgSh9WGUjqhdRzo6kjTWmPJ4xVSFyP5qag0i2aCcSdqb8s5EwtGRpdKUzOkvqi+e+pkmMDwztZ6wwyc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770035546; c=relaxed/simple; bh=rbe0seF46fudAqwTkVNeWe61a9cHa+P+bkAUraRLC60=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=O7jxXukpFSYl/loguQOR06DIVeRRwFEijmKNOgXBHpWHH1qET8amMORVJuVyNV4NtArU7cXFifv7H+vLyf93De4cHDy0mfMxEKzo+umaQIfAQP07HERP/OZN3+Qiu+6cvxvAwXhc+V8i4EK9NjhboFm0GaLai9wAcp1wG+lAfi4= 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=lGL4lQDb; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=mjL2LVy3; arc=none smtp.client-ip=202.12.124.150 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="lGL4lQDb"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="mjL2LVy3" Received: from phl-compute-02.internal (phl-compute-02.internal [10.202.2.42]) by mailfout.stl.internal (Postfix) with ESMTP id C9C3E1D000BF; Mon, 2 Feb 2026 07:32:23 -0500 (EST) Received: from phl-frontend-02 ([10.202.2.161]) by phl-compute-02.internal (MEProxy); Mon, 02 Feb 2026 07:32:24 -0500 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=fm2; t=1770035543; x=1770121943; bh=akwozPMLif INF+++/roi6UfRn+JJWSC2UUREXt9DVBI=; b=lGL4lQDbf6HYqhnAECJL+cSdZ6 0PWPJn8j6gd0+ZvXdHqPq9HaasZLFd+erXHnS6oufgfkIfwBWF3+wSEBug3p5PX0 rblAVRAKmyRvP968vQA2B5PhUyRBN4gGxdC1MlzDvGUHugwscT8Y5CK2gcom/qHY XdmD29f8mc2S+XZ8DMytVFoUcsq677pI0xsyNOYJBNkbXzjS4WgspAOAYfjvsaXA I7uDZxgndZBLVQp0BdUtktd9lDnuSg60BFXSPTX7kyPQgMbCi8RDc/tCBOLCtXG8 gzRgULqF93O20e+OEZb2BuiJcSCbhkGRD4kRMiacoS49BMMs2np32myp3AfQ== 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=fm3; t= 1770035543; x=1770121943; bh=akwozPMLifINF+++/roi6UfRn+JJWSC2UUR EXt9DVBI=; b=mjL2LVy3YfT2wqdAv3J5YRI5izsZhoDXXR+Nk0QU9kC+7uhtGGe HSinr2CWgv9XHCUIpva5yelLXwYucQcy0+VaJgTg/UmHoLsfODwkS/Pb9qhe6rie 8J4j8h4cTm0q8VfdlHFKrj5KGHZFWnSlkVVp+U8ShNd+mdt7QDL4B1BYIt466aOk P+6DqUamr0Mu8t7QNgaSPMmoVvzEmQEbi06fYuViBP7Qya8iIhUJwxFNcKh3qhgb TQl+5k9WHodVBOeso6tLTkDHKm4D47vZOsvjzkKHuOo3UhwbhjVyCVqvE1kVVKss YHXF8BiXFzTA/qardQW8uvulIU8ctIYOsrw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddujeejieegucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhephffvvefujghffffkfgggtgesthdtredttdertdenucfhrhhomheplfhunhhiohcu vecujfgrmhgrnhhouceoghhithhsthgvrhesphhosghogidrtghomheqnecuggftrfgrth htvghrnhepfeevteetjeehueegffelvdetieevffeufeejleeuffetiefggfeftdfhfeei geeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepgh hithhsthgvrhesphhosghogidrtghomhdpnhgspghrtghpthhtohepgedpmhhouggvpehs mhhtphhouhhtpdhrtghpthhtohephhgrrhgrlhgunhhorhgughhrvghnsehgmhgrihhlrd gtohhmpdhrtghpthhtohepghhithesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphht thhopehgihhtghhithhgrggughgvthesghhmrghilhdrtghomhdprhgtphhtthhopehgih htshhtvghrsehpohgsohigrdgtohhm X-ME-Proxy: Feedback-ID: if26b431b:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 2 Feb 2026 07:32:23 -0500 (EST) From: Junio C Hamano To: Harald Nordgren Cc: git@vger.kernel.org, gitgitgadget@gmail.com Subject: Re: [PATCH] revisions: add @{default} shorthand for default branch In-Reply-To: <20260131205521.11876-1-haraldnordgren@gmail.com> (Harald Nordgren's message of "Sat, 31 Jan 2026 21:55:21 +0100") References: <20260131202232.9213-1-haraldnordgren@gmail.com> <20260131205521.11876-1-haraldnordgren@gmail.com> Date: Mon, 02 Feb 2026 04:32:21 -0800 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 Harald Nordgren writes: >> Doesn't repo_default_branch_name() do the right thing without being >> noisy at all even in a repository without that configured, as the >> function will fall back to the built-in default? While I do not >> think of a workflow in which a handy access to the value the >> function gives would be so useful that it deserves a short-hand, it >> would be a reasonable candidate of what to be called "@{default}", >> if it proves useful, I would think. > > After looking a this, this is hard-coded. Not showing what is relevant for > each repo that exists: Yes. Of course. It was a suggestion to avoid getting failures in repositories that do not override it with their own configuration files. So the @{default} we originally discussed was not something that is "relevant for each repo", and where refs/remotes/origin/HEAD points at has a better chance of closer to the relevant name?