emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: vc-modify-change-comment for "modern" backend fix


From: Dmitry Gutov
Subject: Re: vc-modify-change-comment for "modern" backend fix
Date: Thu, 19 May 2022 03:05:30 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1

On 18.05.2022 09:34, Alfred M. Szmidt wrote:
+  "Extract the commit message for the current file."
+  (vc-call-backend log-view-vc-backend
+                   'get-log-entry
+                   (log-view-current-file)
+                   (log-view-current-tag)))

Why not customize the extraction function only for backends that need it?

The backend command could be called 'extract-comment'. Which is somewhat different from "log entry" because the latter seems to include the headers, in VC parlance.

And you haven't explained thus far your plan for implementing 'modify-change-comment' for e.g. Git.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]