Function: magit-tag-create
magit-tag-create is an autoloaded, interactive and byte-compiled
function defined in magit-tag.el.
Signature
(magit-tag-create NAME COMMIT &optional ARGS)
Documentation
Create a new tag with the given NAME at COMMIT.
With a prefix argument annotate the tag.
(git tag [--annotate] NAME REV)
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-tag.el
;;;###autoload
(defun magit-tag-create (name commit &optional args)
"Create a new tag with the given NAME at COMMIT.
With a prefix argument annotate the tag.
\n(git tag [--annotate] NAME REV)"
(interactive (list (magit-completing-read "Create tag" (magit-list-tags))
(magit-read-branch-or-commit "Place tag on")
(let ((args (magit-tag-arguments)))
(when current-prefix-arg
(cl-pushnew "--annotate" args :test #'equal))
args)))
(magit-run-git-with-editor "tag" args name commit))