From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: git history tracking across renames (and emacs support) Date: Thu, 12 Jul 2018 17:26:21 +0100 Message-ID: <87a7qwzahe.fsf@gmail.com> References: <87y3li4vh7.fsf@telefonica.net> <87efnan46u.fsf@linux-m68k.org> <86wp12qtgo.fsf@dod.no> <83tvw6chqv.fsf@gnu.org> <86shbprix7.fsf_-_@dod.no> <838t6jgl1k.fsf@gnu.org> <601m6cc6.fsf@lifelogs.com> <83o9fefnv9.fsf@gnu.org> <83in5lg4ol.fsf@gnu.org> <83efg9fxnj.fsf@gnu.org> <838t6hfa4h.fsf@gnu.org> <87h8l4lt9q.fsf@gmail.com> <831sc8fttu.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1531412675 11964 195.159.176.226 (12 Jul 2018 16:24:35 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 12 Jul 2018 16:24:35 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: larsi@gnus.org, cpitclaudel@gmail.com, tzz@lifelogs.com, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 12 18:24:30 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fdeOM-00030X-Dd for ged-emacs-devel@m.gmane.org; Thu, 12 Jul 2018 18:24:30 +0200 Original-Received: from localhost ([::1]:32952 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fdeQT-0001mr-Bk for ged-emacs-devel@m.gmane.org; Thu, 12 Jul 2018 12:26:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54444) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fdeQJ-0001lY-Lq for emacs-devel@gnu.org; Thu, 12 Jul 2018 12:26:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fdeQF-0001Kb-MN for emacs-devel@gnu.org; Thu, 12 Jul 2018 12:26:31 -0400 Original-Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:39328) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fdeQF-0001Jc-Fp; Thu, 12 Jul 2018 12:26:27 -0400 Original-Received: by mail-wr1-x42a.google.com with SMTP id h10-v6so22314711wre.6; Thu, 12 Jul 2018 09:26:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=SZ9VfRmUGbK0Pu7vYwcGW5yNaWGwQqsY5BrITnCzSLc=; b=lp1orpCjoOOuMmO4FfuOBi6Z3VJmi15p5ZpdewA4GVXHnaTdgvEUDDxKPxGUz3spoo iNXJzqNM01jYeIie6vUL79IdVHktivlrX+YgsluHThvOkUOjbfNWqFVG9sDUFUr+E2Op zx1okosO5pUDy/vcdWL9cQXjlLIplJGVEDMVfEFet0UfQbfnbo2Lvy1BArX/c/vtfRAL hzwYtHpeeuV1qhUBomNzzPkAzgf8R1SfwxXQQOaEhDyM5uW8x+Mn3pKBFvI15lw0NI3s Kgw8edcoPgTpo+Gi1ams+Ovq7kE3dc2LIJl9Y6cqH2ZoZXcxSWTtEOVSyWlWgEvrIN4d jFsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=SZ9VfRmUGbK0Pu7vYwcGW5yNaWGwQqsY5BrITnCzSLc=; b=ANxCk4RtRXJlkMwxzJcXcaJB4Cwrq1i/cXskxqYTgd3mPzxnY4zlCpPNwyAWsuWNK5 2PvePUvh/5lxuMbhkSMRXQ5JmFJWbP0ARmma8E87JwxUpKWLsZuMBnknWNcQLv9E1A7T 6bB3XX5FVn/ZLwfzZJ0jTkV4uvTF33vdxtalC6gOxGnqZP7pf/XuWJlw9Nsxa3TuaeHI QfbYqobYW2WVnpwF8mzJ4zMD/aIvyZWLgSM1ympsPF5g4YWtYOghJQVEtUe9Ioe5Aihc ui91URbL5XggsCE9RYBP7MqWjkujRbocm3ctD68Vw7Xir/QreLTLg0yTh3eDNb13EFmo ZdDg== X-Gm-Message-State: AOUpUlEiWSawmNFMYo6WdLAQw6/DqAgmYNaVjk0I2wPEDxCGOtaGttbO Fv+paIIAFHX64WhtyRGXvKU= X-Google-Smtp-Source: AAOMgpdIyrpCEt2tnGxUplO+mukbVavvkXzIQI5P+blWc9RsnpK7lIaMs9LINnP7wUe38mN47CyawA== X-Received: by 2002:adf:fb43:: with SMTP id c3-v6mr2415897wrs.32.1531412785950; Thu, 12 Jul 2018 09:26:25 -0700 (PDT) Original-Received: from lolita.yourcompany.com (188.139.62.94.rev.vodafone.pt. [94.62.139.188]) by smtp.gmail.com with ESMTPSA id t184-v6sm5953077wmf.18.2018.07.12.09.26.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 12 Jul 2018 09:26:25 -0700 (PDT) In-Reply-To: <831sc8fttu.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 12 Jul 2018 16:48:45 +0300") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::42a X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:227280 Archived-At: Eli Zaretskii writes: > You are working too hard, IMO. I generally write the GNU-style > ChangeLog entries only when I land a feature on the development > branch, I don't write them while working on a feature branch. On a > feature branch, my log entries are very short and only describe what > milestones were reached and what significant issues fixed. So the > multiple entries and related problems never happen for me. Yeah I do scratchy local dev work without proper entries too, but I wasn't talking about that, just about committing twice to the same file on the same day. I take it you never do (really?) > As for the rest, if you insist on not having a real file with > ChangeLog entries, then perhaps add-log.el could be extended to be > able to use a buffer name, not just a file name, for where to put the > log messages. It already allows you to customize the file name; it > could do something similar with a buffer name, and that buffer could > have no file name. Then a large part of your problems would go away, > AFAIU. Yes, this was more or less what I had in mind, except I thought about encoding that information in a buffer-local variable. But your idea of doing it in the buffer's name sounds better. > (This will not solve the problem in "emacs -Q", but nothing like this > could ever do that, since it should be obvious that whatever you code > will be an optional feature.) Perhaps it could work in emacs -Q if you make the whole feature depend on a variable which I can set dir-locally (presumably not in Emacs, but in all my other projects). > And having the vc-log buffer under change-log-mode is, of course, > trivial, either with your customizations or by default. But that in turn would lose me some useful that vc-log functionality. AFAIU the two modes should be merged, maybe one deriving from the other. >> But perhaps, before spending time on the patch, you or someone else can >> tell me if you use ChangeLog for more projects than Emacs and/or how you >> avoid these annoyances. > > I just told you: I have a real ChangeLog file in the repository. With > some projects, this file is versioned; with others, it is a local > untracked file mentioned in .gitignore. Emacs belongs to the latter > category. Right, I was just making sure I wasn't missing some other trick. I think the changes envisioned above (particularly the fileless ChangeLog buffer) only justify working on them if noone else is working on the better alternative, which is IMO to automatically generate the "* file.ext (changed entity)" list from the diff at commit-preparation time, as I think someone suggested already. Jo=C3=A3o