Article View: linux.kernel.git
Article #666Re: [Bug] Porcelain allows creation of '@' branch
From: Junio C Hamano
Date: Fri, 16 Oct 2026 15:35
Date: Fri, 16 Oct 2026 15:35
27 lines
10857 bytes
10857 bytes
Bence Csókás <bence.csokas@arm.com> writes:
> On 2026. 09. 03. 14:35, Bence Csókás wrote:
>> On 2026. 09. 03. 10:38, Kristoffer Haugsbakk wrote:
>>> Not a bug (2024) https://lore.kernel.org/git/xmqqy12z7eti.fsf@gitster.g/
>>>
>>> I suspect that it is much more productive to deprecate and remove
>>> "@" that is a built-in synomym for HEAD (but "refs/remotes/origin/@"
>>> does not act as a synonym for "refs/remotes/origin/HEAD"). [...]
>> I would not want to see @ removed, I have abandoned using HEAD years
>> ago, too much typing (especially if you want to express more complex
>> things, e.g. `git range-diff long-branch-name{^..otherbranch,..@}`, to
>> pick an example out of my bash-history).
>>
>> Bence
>
> P.S.:
>
> $ history | grep 'git .*@' | wc -l
> 74
> $ history | grep HEAD | wc -l
> 0
>
> ;)
You have some unlearning of a bad habit to do, then ;-)
Technical Details
Message-ID:
<xmqq4ielirpr.fsf@gitster.g>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-72235-linux-kernel-git=dewy.ruReferences:
<4e8d8b75-ddf4-4602-a2a8-26e5214c65f0@arm.com> <CALnO6CCph_xC394v_BetLPyoriYc9dLZY42LsXhjVNdvt2e-cQ@mail.gmail.com> <958622c0-e0a5-4e27-9815-cd1fff2ed111@app.fastmail.com> <2006115b-bcf2-486a-ac7a-681caae686b4@arm.com> <fc3de093-a051-415c-b40e-f9df5c914704@arm.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-72235-linux-kernel-git=dewy.ru
From: gitster@pobox.com (Junio C Hamano)
Newsgroups: linux.kernel.git
Subject: Re: [Bug] Porcelain allows creation of '@' branch
Date: Fri, 16 Oct 2026 08:35:12 -0700
Organization: Usenet Network
Message-ID: <xmqq4ielirpr.fsf@gitster.g>
References: <4e8d8b75-ddf4-4602-a2a8-26e5214c65f0@arm.com>
<CALnO6CCph_xC394v_BetLPyoriYc9dLZY42LsXhjVNdvt2e-cQ@mail.gmail.com>
<958622c0-e0a5-4e27-9815-cd1fff2ed111@app.fastmail.com>
<2006115b-bcf2-486a-ac7a-681caae686b4@arm.com>
<fc3de093-a051-415c-b40e-f9df5c914704@arm.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="2802924"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:xA5W8zcVA6FFusf5yGjwtVlLdTk= sha256:VLOo9u5+Uqzonli8m7diWa+AKaHy21KFkyCy6bhnjwY=
sha1:hcrI+thmB5u3BpiJvVVC/j6daBE= sha256:1WXyMl3oTorcjIdC1TLhcWiE9+NMgwyqL8+56bF2cXk=
List-ID: <git.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id 97B6C110565; Fri, 16 Oct 2026 18:37:30 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.05
X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25,
MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=pobox.com header.b=k6KIN5FF; dkim=pass (2048-bit key)
header.d=messagingengine.com header.b=wpREWE6o
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id iFTyZvW-9i7Z;
Fri, 16 Oct 2026 18:37:27 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=git+bounces-72235-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=pobox.com
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
by mail.dewy.ru (Postfix) with ESMTPS id 94E8C110562; Fri, 16 Oct 2026 18:37:13 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
by tor.lore.kernel.org (Postfix) with ESMTP id 138A32F42E; Fri, 16 Oct 2026 15:35:22 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id D71BC3A2556;
Fri, 16 Oct 2026 15:35:17 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=pobox.com header.i=@pobox.com header.b="k6KIN5FF";
dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="wpREWE6o"
X-Received: from fout-a7-smtp.messagingengine.com (fout-a7-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 49AA21E7C18
for <git@vger.kernel.org>; Fri, 16 Oct 2026 15:35:15 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.150
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
t=1792164916; cv=none; b=OQMuK4U0ZT6e72MLrJngcwo2XDKZiWwF66jGXHaAzwFDxNBs3PAZqwvX4VRPBhRdrQgh8OJna0DEmiqbYDnyrJV+GQyPiHozrH0mMWK8JArmvcfmynG+0C5tXCB6ygG6tkDSdq4w8V7QnsDWqdBtusk+LA8959biL1hNcz22ad8=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
s=arc-20240116; t=1792164916; c=relaxed/simple;
bh=xO9rlGjo4+cFXUGHuraAMxEgKc84TUbYYbW7GJZhr7w=;
h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID:
MIME-Version:Content-Type; b=FtXbfukeFgWBh5SAIMvznNBHO2fL2iOm/DS47Lh0AVxZO6uCnfkbnqpKFBNi07K5289tR8zC2ql6qaA3ykKRNNS2zXrrIO3mdyThjoKJLWmPRGX8X7goRWlbUqznTdcDxZ/8UxDXkriLd+VHRbe+paP6VyUJoFt7q0dF2OOC8IM=
X-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=k6KIN5FF; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=wpREWE6o; arc=none smtp.client-ip=103.168.172.150
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=pobox.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pobox.com
X-Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46])
by mailfout.phl.internal (Postfix) with ESMTP id 81846EC018B
for <git@vger.kernel.org>; Fri, 16 Oct 2026 11:35:14 -0400 (EDT)
X-Received: from phl-frontend-01 ([10.202.2.160])
by phl-compute-06.internal (MEProxy); Fri, 16 Oct 2026 11:35:14 -0400
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pobox.com; h=cc
:cc:content-transfer-encoding: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=1792164914;
x=1792251314; bh=Hwl5cSN0FIePFTKUCdM4vZMP8A0EgvhU82jEXGlH0zg=; b=
k6KIN5FFUxiGcybUOpZpCki7RdczHmXUXjTZV0FTneLU6KKDm6CerhD9pgxcsI9G
YgJLynIffX/t/ZMwRXH+1FQxX9f8G+8kPoLKQg9FTZ+xCTvuXF/Kupx/j4rBE+Ur
pWxc/XgbHpHHlJU7laU7CmhilLjG9FJHfwwJDKWKNhaWiUwv7kjk6Gn08/F8yHqF
mikgyHoNPjgNmgoOOloz91J8b/Su2Tddz8wwH1+FJ2EwOyFJAkAm6Yacg7URejYM
G7wIPgoTUCvop8gSq0XirnC1VHq8/w8ub7mkcTDZqA2am3AEf1Rg6qh0RlLzk73K
pPSFFh4k5aA6s9LiMOgqSw==
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
messagingengine.com; h=cc:cc:content-transfer-encoding
: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=fm2; t=1792164914; x=
1792251314; bh=Hwl5cSN0FIePFTKUCdM4vZMP8A0EgvhU82jEXGlH0zg=; b=w
pREWE6oXyAtL1tyNGXlqfhl6pKSBHIvWRDTNwst82kj3OqSPVpYfP4qvxJiF8sw4
hWSNedYVAwdGRQUTra6mqBnvHAyXgVlY4WQ5FNPk60G/QZ0mpljctjy/IumQqFvC
Liih3FITYzBcUITFFAf33jsqhpoO19RguXfjNjaCWMl7AT7Y11iECukT09/4BWd6
RDiXJCDveL8nNdPc2La86hu8S+aiqoRjLOh5nlSwWKs3hHBXofkiMJQhLGFQpVnk
fY5YfAEA7ez/6hob84f1sN/Kd5vwkitIgZ8M7gPU77tHfZ4rQiNlnDcIlcQleN1l
gjqFUliPPQpVzNtqP8IoQ==
X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-06;
repo=github.com/dkim2wg/interop; date=2026-10-08; sw=lmtpprox;
action=sign d=pobox.com a=rsa-sha256;
X-DKIM2-Signature: i=1; m=1; t=1792164914; d=pobox.com;
mf=PGdpdHN0ZXJAcG9ib3guY29tPg==;
rt=PGdpdEB2Z2VyLmtlcm5lbC5vcmc+;
s=fm1:rsa-sha256:KdOR1gk8LwfkgEPdoiEdnf4QZlW8OFbAAiTH4rnuUKlwkKj
Mdp5IjmsrqNRhBMBoZlEmjIbzvKs9+4Sqru3iKGcOhaeZTzcqH7VrOK3r+24Q7WL
L8zwb7KiiMGSKS3LJhRUE47hpeAZhnja0Q9X14OcaFIrDD/98uL3aCjsafk0TKJ9
4/6jp4BA6kJJCkR8GaYv9s/EJYUH8GAQDJKDUjdBWLtawYRdrleIP2f64XvJwtng
/znoOF6Obul15X2snbocFiVk9qnlV4P21SMhsSIuvYkfWiVl6vPmgwtcoTxpdwPJ
8Pl3agvlzCPdyxNF/oiDeGzKZbGqJApXUzhxaEg==;
X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-06;
repo=github.com/dkim2wg/interop; date=2026-10-08; sw=lmtpprox;
action=mi-m=1; hc=13;
hn=cc,content-transfer-encoding,content-type,date,feedback-id,
from,in-reply-to,message-id,mime-version,references,subject,to,
user-agent;
X-Message-Instance: m=1; h=sha256:WXFCF/av16XCzcJy/5RG8VK4shODe0q+IK8XxTGR40w=:xO9rlGjo4+cFXUGHuraAMxEgKc84TUbYYbW7GJZhr7w=;
X-ME-Sender: <xms:MkTSagVkdSwYTrIekiMtS8xWh8wkED5CSg1oCB9c5onP2hjVi_KTxw>
<xme:MkTSatBuNzkciM11yq9pz_PjUCnqsiAhj0xIyC2GyG8PoUYjya9evHh891pWh-ZqW
mqnB_0N4XzABpr5yJH6ACK45Qod_fqGi6O2xFjpbk-Gf6KTFc48vXM>
X-ME-Received: <xmr:MkTS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:MkTSanxhlZVbvti_vqaJu-Sa3yW-PqBiu2yWPRdPkSsNj2j5yLvxZlzr>
X-Feedback-ID: if26b431b:Fastmail
X-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri,
16 Oct 2026 11:35:13 -0400 (EDT)
X-Cc: Kristoffer Haugsbakk <kristofferhaugsbakk@fastmail.com>, "D. Ben
Knoble" <ben.knoble@gmail.com>, git@vger.kernel.org, Jeff King
<peff@peff.net>
X-In-Reply-To: <fc3de093-a051-415c-b40e-f9df5c914704@arm.com> ("Bence
Csókás"'s
message of "Thu, 15 Oct 2026 09:58:31 +0200")
X-User-Agent: Gnus/5.13 (Gnus v5.13)
X-Precedence: bulk
X-Mailing-List: git@vger.kernel.org
X-List-Subscribe: <mailto:git+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:git+unsubscribe@vger.kernel.org>