From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from fhigh-a7-smtp.messagingengine.com (fhigh-a7-smtp.messagingengine.com [103.168.172.158]) (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 BDB75448399 for ; Tue, 28 Jul 2026 14:23:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.158 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785248593; cv=none; b=aUX9dRqkbeZcWoLxkljYaC0kFZ6MUMtl4ez8yaZ1FofFDq3RDf19ElK+P/rcZ5WYDf7E4nH3nIo95TIZJ/RfxPXAT38Y5kb2IKp1FywMmk5tufoW7K6SLmR6wEoaendi6i8+KEfEz9yzMx0085cptlRMxAfDPpsAht7DECK8qdc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785248593; c=relaxed/simple; bh=WPHSTFVhDf5R/14m/xr5+6HBA3VUTNal3nIXuGEDgUM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=dTO/w3Pjz7DhaXmu79YSgwSU7a5HA9Sq+3PXslE2cIb7p7ik1Ll+PbY9BEcF0/yyEq7zdrQgUnY8gIcxl6jKBXO+zZfTQJg6B9mywWgxYrd2PRcssah9FQ/ilbdw6qyQL0VbEg8T9Tr0jb4wdVR3qkuBA618BIqp208Tz83eJX8= 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=WSohqaCU; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=pMwXiXsg; arc=none smtp.client-ip=103.168.172.158 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="WSohqaCU"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="pMwXiXsg" Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41]) by mailfhigh.phl.internal (Postfix) with ESMTP id DEBEE14000CC; Tue, 28 Jul 2026 10:23:10 -0400 (EDT) Received: from phl-frontend-01 ([10.202.2.160]) by phl-compute-01.internal (MEProxy); Tue, 28 Jul 2026 10:23:10 -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=fm1; t=1785248590; x=1785334990; bh=zwcaUA3LaN TV9iwhIS2JX4ymCTth92YqADbhDaB6vFk=; b=WSohqaCUnOYhlS+b9OC36vAi76 AiSvht1/1hf95tKf3sgdeDJLpilHX3bliU+bvlFZ+iI6VSxEwOzSBWiS2U/ahH+V w771t6YRGbOZi3WCPvgVONRotCWX2p3rttAD3IEMvyEdn3EcYuSgg4uEFKRGs5JU 4HZsUCzd4ZzrAWYaaVVnAE39SHhNR+IGEPUTbKbvLNaYkSwnhnvQXo1aha7HiarW vqpqt+5dY6dH9ikLK2UJWQNbCCtQzNr10s3NfUTOkPR3dUgradu3Ro5biSUxcj/G 32tHZfzYj9f2Ak8GkPZKX/ajfL1ZpcSrCr4YpDJuZK0YtbGyUfEysPj7qJPw== 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=fm2; t= 1785248590; x=1785334990; bh=zwcaUA3LaNTV9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pz/tYqhRtl3SSrmSVSMm5Opk26zzn2R+RBDyCw X-ME-Proxy: Feedback-ID: if26b431b:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 28 Jul 2026 10:23:10 -0400 (EDT) From: Junio C Hamano To: Phillip Wood Cc: Son Luong Ngoc via GitGitGadget , git@vger.kernel.org, Kristoffer Haugsbakk , Son Luong Ngoc Subject: Re: [PATCH v3 1/2] rebase: skip branch symref aliases In-Reply-To: <8631114b-aa6f-446e-9710-92c400320eac@gmail.com> (Phillip Wood's message of "Tue, 28 Jul 2026 10:36:33 +0100") References: <5bece313-6ffb-450b-add1-29652b64de10@gmail.com> <00e529b6-7ae7-463f-a4b3-0991e9411aba@gmail.com> <8631114b-aa6f-446e-9710-92c400320eac@gmail.com> Date: Tue, 28 Jul 2026 07:23:09 -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 Phillip Wood writes: >> But stepping back a bit, is having a HEAD that is a symref and >> points outside "refs/heads/" an invalid state? Why are we catering >> to such a configuration to begin with? > > We allow HEAD to point to anything below "refs/" - see e9cc02f0e4 > (symbolic-ref: allow refs/ in HEAD, 2009-02-13). But that was about a low level mechanism that must be more lenient to be usable as repair tools to recover from such a broken state, no? I thought the end-user facing commands like "git checkout" have been tightened long ago to stop users from getting into a situation that needs repairing in the first place. And that was why I asked.