Function: vc-git-create-tag
vc-git-create-tag is a byte-compiled function defined in vc-git.el.gz.
Signature
(vc-git-create-tag DIR NAME BRANCHP)
Source Code
;; Defined in /usr/src/emacs/lisp/vc/vc-git.el.gz
(defun vc-git-create-tag (dir name branchp)
(let ((default-directory dir)
(start-point (when branchp (vc-read-revision
(format-prompt "Start point"
(car (vc-git-branches)))
(list dir) 'Git (car (vc-git-branches))))))
(and (or (zerop (vc-git-command nil t nil "update-index" "--refresh"))
(y-or-n-p "Modified files exist. Proceed? ")
(user-error (format "Can't create %s with modified files"
(if branchp "branch" "tag"))))
(if branchp
(vc-git-command nil 0 nil "checkout" "-b" name
(when (and start-point (not (eq start-point "")))
start-point))
(vc-git-command nil 0 nil "tag" name)))))