Function: magit-notes-remove

magit-notes-remove is an interactive and byte-compiled function defined in magit-notes.el.

Signature

(magit-notes-remove COMMIT &optional REF)

Documentation

Remove the note attached to COMMIT.

REF is the notes ref from which the note is removed.

Interactively or when optional REF is nil use the value of Git variable core.notesRef or "refs/notes/commits" if that is undefined.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-notes.el
(defun magit-notes-remove (commit &optional ref)
  "Remove the note attached to COMMIT.
REF is the notes ref from which the note is removed.

Interactively or when optional REF is nil use the value of Git
variable `core.notesRef' or \"refs/notes/commits\" if that is
undefined."
  (interactive (magit-notes-read-args "Remove notes"))
  (magit-run-git-with-editor "notes" (and ref (concat "--ref=" ref))
                             "remove" commit))