Function: magit-add-change-log-entry
magit-add-change-log-entry is an autoloaded, interactive and
byte-compiled function defined in magit-extras.el.
Signature
(magit-add-change-log-entry &optional WHOAMI FILE-NAME OTHER-WINDOW)
Documentation
Find change log file and add date entry and item for current change.
This differs from add-change-log-entry (which see) in that
it acts on the current hunk in a Magit buffer instead of on
a position in a file-visiting buffer.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-extras.el
;;;###autoload
(defun magit-add-change-log-entry (&optional whoami file-name other-window)
"Find change log file and add date entry and item for current change.
This differs from `add-change-log-entry' (which see) in that
it acts on the current hunk in a Magit buffer instead of on
a position in a file-visiting buffer."
(interactive (list current-prefix-arg
(prompt-for-change-log-name)))
(pcase-let ((`(,buf ,pos) (magit-diff-visit-file--noselect)))
(magit--with-temp-position buf pos
(let ((add-log-buffer-file-name-function #'magit-buffer-file-name))
(add-change-log-entry whoami file-name other-window)))))