Function: vc-git-log-edit-toggle-amend
vc-git-log-edit-toggle-amend is an interactive and byte-compiled
function defined in vc-git.el.gz.
Signature
(vc-git-log-edit-toggle-amend)
Documentation
Toggle whether this will amend the previous commit.
If toggling on, also insert its message into the buffer.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/vc/vc-git.el.gz
(defun vc-git-log-edit-toggle-amend ()
"Toggle whether this will amend the previous commit.
If toggling on, also insert its message into the buffer."
(interactive)
(vc-git--assert-allowed-rewrite (vc-git--rev-parse "HEAD"))
(log-edit--toggle-amend (lambda ()
(vc-git-get-change-comment nil "HEAD"))))