From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from fhigh-b5-smtp.messagingengine.com (fhigh-b5-smtp.messagingengine.com [202.12.124.156]) (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 836593A6B9A for ; Thu, 2 Jul 2026 20:28:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.12.124.156 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783024126; cv=none; b=BjbTlTKbAvDz8Zk/zrw+RmLvN+ONqaED1FVdpt4n/AGdS3P8FHluBDFcoK29Kp6optmdSpWMstTfzYbzpasQnSSzjtIYAOPS+KFhy2QaEcyhtTQbrfX6f1d5swp+VAoqsi1ai9YWHW84RPuTD95q44JT1n/XhJV6dQaArubhlc4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783024126; c=relaxed/simple; bh=Y4n46gmh0J3869XdCKwc5wHNEENHd5OIlhw9czLtFIk=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=oBDJZaCkFQwjJt9Em78Znjxm7qs5nmJK7p6ubYpKLzT+ndVDy2+585jx3X4UF7zmq/bltH4ug3iSU5ucKDif0YQXN1e92R8941DPaIpxjBqz8AtUzspt66pUwslnNMvZ44YdaMBTBa0BnyRypGcHpOKpx1Xw3czHno+sV0R3brM= 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=Y20KE4Tr; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=Swl6ibp4; arc=none smtp.client-ip=202.12.124.156 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="Y20KE4Tr"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="Swl6ibp4" Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43]) by mailfhigh.stl.internal (Postfix) with ESMTP id 932067A010C; Thu, 2 Jul 2026 16:28:43 -0400 (EDT) Received: from phl-frontend-01 ([10.202.2.160]) by phl-compute-03.internal (MEProxy); Thu, 02 Jul 2026 16:28:43 -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=1783024123; x=1783110523; bh=Y4n46gmh0J 3869XdCKwc5wHNEENHd5OIlhw9czLtFIk=; b=Y20KE4Tr1vhfuVHaxFN7XTukzh njnrS0JQbCTy9tZQOyZVVNhFp6Ll7Y9zxqZxTQmjq58zCs17pZoQPiRXb5f8FfP4 q/J2XKe8PM3v0nt0wp56uVx/KFifbCgszj3CwX/aU2A2ErdeyVDNptOG62o3eTLM 0AMkuhyeYU6hX+LhclOCQ3KVf6A64O1i+BNxoqUUCwKA2gV1799oMBbYpS09kfsy sFI3LE1QAQPlxEl7EB8he+gkmUZbWZ9fMLsxD0LTsvRpbAwc83xVovnWU/34Zbqt xpEvX4bxYAsM9KkquoH5VAjpz9CFMBHnH0q9FvL480QN+WJQn4KEoBY7iTZg== 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= 1783024123; x=1783110523; bh=Y4n46gmh0J3869XdCKwc5wHNEENH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dQb9mGX5+rNe5PNduxEMBmQ X-ME-Proxy: Feedback-ID: if26b431b:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 2 Jul 2026 16:28:42 -0400 (EDT) From: Junio C Hamano To: Patrick Steinhardt Cc: phillip.wood@dunelm.org.uk, Matt Hunter , Harald Nordgren , Harald Nordgren via GitGitGadget , git@vger.kernel.org Subject: Re: [PATCH v5 0/4] history: add squash subcommand to fold a range In-Reply-To: (Patrick Steinhardt's message of "Thu, 2 Jul 2026 14:54:51 +0200") References: <3b3af3ef-a043-4af9-964e-429237789c97@gmail.com> <3c35bd17-e884-432d-a400-36a89964ed89@gmail.com> Date: Thu, 02 Jul 2026 13:28:40 -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: > Yeah, agreed. I think that the reflog is insufficient for a lot of Git's > operations and that it is way too hard to reason about. As the reflog has never been about undoing, this is understandable. Things like @{-N} notation and "git push --force-if-includes" make good use of the "what was this ref pointing at historically?" information, so they give us a proof that it is possible to programmatically go back and find the necessary state, though.