From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.devel Subject: Re: Move shorthands.el to lisp/emacs-lisp/? Date: Fri, 29 Oct 2021 17:31:07 +0700 Message-ID: References: <87cznths5j.fsf@gnus.org> <87ee87cwju.fsf@gnus.org> <83sfwmwubd.fsf@gnu.org> <875ytid54b.fsf@gnus.org> <87cznq8oib.fsf@gnus.org> <871r444z59.fsf@gnus.org> <83cznos8gc.fsf@gnu.org> <83tuh0qgzn.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="34069"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Magne Ingebrigtsen , Emacs developers , =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= , Stefan Kangas To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Oct 29 12:49:10 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 1mgPRe-0008eH-Em for ged-emacs-devel@m.gmane-mx.org; Fri, 29 Oct 2021 12:49:10 +0200 Original-Received: from localhost ([::1]:59212 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mgPRd-0002Jm-Ah for ged-emacs-devel@m.gmane-mx.org; Fri, 29 Oct 2021 06:49:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51064) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgPAQ-00067N-Cp for emacs-devel@gnu.org; Fri, 29 Oct 2021 06:31:22 -0400 Original-Received: from mail-ua1-x92d.google.com ([2607:f8b0:4864:20::92d]:35773) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mgPAO-0002kn-SL; Fri, 29 Oct 2021 06:31:22 -0400 Original-Received: by mail-ua1-x92d.google.com with SMTP id q13so17309208uaq.2; Fri, 29 Oct 2021 03:31:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=nSLtT90GZbX6SMMX7zhH6lgD1MA+ZIWb4jxOIEIODzM=; b=O/x92TNA8ntrPLm+C8kuonn5FPUHL8UdspAvedDGLDoIG5l9RsQdGa+6j0mpuM+qg8 Z6UV+qffs7NKe8mTRc6lUKeiHg5bbVXepzr5P9YObCjZHaHJKRoqDU4P5A2IcO5Op2hm ejks2IcGZ5iH2NS/D5n3VhAELZ7xFVX/h8N7OaHTh/i2RYAv2HTo+hFw4+6OWL7YAq7j FYpNUUBRDxoB/SuOf+7uwzhEthCV63TG0cgrlm1FFrd+hV4GIENHyhQXgmrqssLvU6OE yETNFVipCBtjtgHcQApQo18c4R+SRLXu4FG0VSEFzDWyzzHlyiBuuMHkx1Pn9BKX05kF EYZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=nSLtT90GZbX6SMMX7zhH6lgD1MA+ZIWb4jxOIEIODzM=; b=DRzMx67BxLIpjR8/h+gRRo6vNxOJcPMuvDEGqeLCYbIoilmUNl7yvpemTMlMxDLJOE tRNqoy/YkFy3gfOoD4d0x0z3wLDtW0gLAvq7IAErQ5i3Twj77/vAdlPDrm36jaVoprtd Ow30Wzzf99G7yUPOj9H+o85gOEyJMbhvss+qipySZ652fRYJh75ABkoFmRZI9ssXCH47 ENwK0xUfU0TFpr3TakU1eweX+tXB2ytlnMHP6ESG8LJ6M0ouew1gCwtm3IC7EqMbRln1 JGJbIJ9mtZJGu1et9JnEWNZCKKY7uWBEBe8nAL+vM1kz1vPj17SIO0399CSWvxOlhBfs e4kQ== X-Gm-Message-State: AOAM531WT8X3izqqOHriPqyFSZmB/EberuD71aHjrYEBMgMW79pNDNf4 kH3ALkDOp6xL/cRIIfjN5L4cBzW2vP2thhijF7rbglpQ0kUIAw== X-Google-Smtp-Source: ABdhPJxDcSSMXcM5IhUvzOGLU9NJHMQSfs4Y8kUVVKL1E8giYEVkhJ6IgM4gEP7K/NJRlAQZzmGWmVg0BgcK0liaX8k= X-Received: by 2002:ab0:45a8:: with SMTP id u37mr8185487uau.24.1635503479275; Fri, 29 Oct 2021 03:31:19 -0700 (PDT) In-Reply-To: <83tuh0qgzn.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::92d; envelope-from=yurivkhan@gmail.com; helo=mail-ua1-x92d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:278180 Archived-At: On Fri, 29 Oct 2021 at 17:10, Eli Zaretskii wrote: > > =E2=80=9Cgit mv=E2=80=9D is not magical though; it does not do anything= that a manual > > move + staging both the deletion and the addition of the moved file > > does not do. > > You misunderstood what I meant by "manual". I meant "git rm" followed > by "git add". > > And if you want to say that the latter also does the same as "git mv", > then that's not my experience. In my understanding and experience, that should have the same effect, provided that the file content hash does not change. > P.S. And I don't actually understand why you decided to chime in: > would something I said cause sub-optimal results? Just trying to dispel myths. There are a lot of those around Git, and I find that suboptimal. Nothing personal and I=E2=80=99m sorry if you perce= ive it as nitpicking on you. People may acquire an anxiety like =E2=80=9Cif you meant to =E2=80=98git mv= =E2=80=99 a file but you just did an F6 Enter in a file manager, you have to move it back and do it correctly=E2=80=9D. That is not the case; one just needs to stage both the deletion and the addition. Alternatively, they may get an idea that =E2=80=9Cas long as you use =E2=80= =98git mv=E2=80=99, Git will track the rename=E2=80=9D. This is also not the case; if one modif= ies the moved file before committing the move, exact move detection will not work and Git will fall back to heuristic-based move detection.