]> git.eshelyaron.com Git - emacs.git/commit
New get-change-comment VC backend action
authorSean Whitton <spwhitton@spwhitton.name>
Thu, 17 Oct 2024 13:04:38 +0000 (21:04 +0800)
committerEshel Yaron <me@eshelyaron.com>
Thu, 17 Oct 2024 18:51:44 +0000 (20:51 +0200)
commitb8ef5cb88b0f2257b93e404643888360957efadc
treee75d6a0a4919a979d489d49cb586dc286ad1ab87
parentfaa530c100f05ca526106dd1a1cad7b4f38d5630
New get-change-comment VC backend action

This gets us closer to using log-view-modify-change-comment with modern
VCS.  What remains is implementing the modify-change-comment backend
action for those VCS.

* lisp/vc/vc.el: New get-change-comment backend action.
(vc-modify-change-comment): Pass the backend to vc-start-logentry.
* lisp/vc/log-view.el (log-view-extract-comment): Use new
get-change-comment action.
* lisp/vc/vc-git.el (vc-git-get-change-comment): Factor out of
vc-git-log-edit-toggle-amend.

(cherry picked from commit 01c8f31a54df511913ad88cb6138a01390faafbe)
lisp/vc/log-view.el
lisp/vc/vc-git.el
lisp/vc/vc.el