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)
  (log-edit--toggle-amend
   (lambda ()
     (with-output-to-string
       (vc-git-command
        standard-output 1 nil
        "log" "--max-count=1" "--pretty=format:%B" "HEAD")))))