From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: Renaming files with git not all that bad? Date: Thu, 09 Dec 2021 08:04:50 +0100 Message-ID: <874k7ii6qx.fsf@gnu.org> References: <878rwuia7g.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14369"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.7.5; emacs 29.0.50 Cc: emacs-devel@gnu.org, Stefan Kangas , Mathias Dahl To: Yuri Khan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Dec 09 08:25:44 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mvDoF-0003Uy-1o for ged-emacs-devel@m.gmane-mx.org; Thu, 09 Dec 2021 08:25:43 +0100 Original-Received: from localhost ([::1]:53494 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mvDoD-0005hx-72 for ged-emacs-devel@m.gmane-mx.org; Thu, 09 Dec 2021 02:25:41 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:54292) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mvDjt-0003rT-1h for emacs-devel@gnu.org; Thu, 09 Dec 2021 02:21:13 -0500 Original-Received: from [2001:470:142:3::e] (port=32818 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mvDjf-0007Ph-RA; Thu, 09 Dec 2021 02:20:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-reply-to:Date:Subject:To:From: References; bh=dBSU+eC3dDsUhm7a68TS5Kau5VPEgYLT8sYgoACaN0M=; b=mb7xJr8e39STXA +/51Fo+LKD92JhV2RSlRmQpVmfNC9PPMqe9u9A5tOQ0Mt0Ofo8bWGTbkhQiFQ2jeu5nN2piyne66t VQab0yq6h8O7EfpH8jsfyqOVrDZktFLxN7/J3TdEpnZQrsP7H+9XsLZf8OjH4cBygjhbV8sqRuDzi m3ZVTiUWTCGeeqcc2agLKjBvWCUf+k96M4p9ZlWz/I8dG6V5sCmKzSeZ7mSZ93NPkRPNc62tYLCSe 66AtjjdI2apJ1xgviYHUt9cD6Rxt0J/XYuLMlx72Gd4rOlYO9JeF3S2zd566ydL+aM3yqQZfsXNHq NsN+i65g8DHLHUhUZLUw==; Original-Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:34889) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mvDjf-0004ol-D3; Thu, 09 Dec 2021 02:20:59 -0500 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailauth.nyi.internal (Postfix) with ESMTP id 8DDEC27C0054; Thu, 9 Dec 2021 02:20:58 -0500 (EST) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Thu, 09 Dec 2021 02:20:58 -0500 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrjeelgddutdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfhgfhffvufffjgfkgggtgfesthhqredttderjeenucfhrhhomhepvfgrshhs ihhlohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenucggtffrrghtthgvrhhnpe eiudfghffhjeevvedvhfffgeetleeljefffeeggfeugeegleehfeeiueejhfehgeenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhorhhnod hmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdekieejfeekjeekgedqieefhedv leekqdhtshguhheppehgnhhurdhorhhgsehfrghsthhmrghilhdrfhhm X-ME-Proxy: Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 9 Dec 2021 02:20:57 -0500 (EST) In-reply-to: X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:281449 Archived-At: Yuri Khan writes: >> Couldn't the same effect be achieved in a simpler manner by copying >> the original file N times in one commit and then stripping the copies >> and original down to what they should eventually become? (AFAIK, git >> has no problem detecting literal copies.) > > Indeed, I tried this and it works for me, as long as the first commit > is only literal copies. Maybe Git=E2=80=99s ancestry detection through c= opies > was not as advanced in the unspecified times when Raymond invented his > technique. Yes, that might be. BTW, if you still have your test example: what happens when you squash the copy commit and the following strip-down commits? Is the history still intact? (I guess, no, but who knows.) Bye, Tassilo