]> git.eshelyaron.com Git - emacs.git/commitdiff
vc-create-tag: use vc-revision-history variable
authorAndrii Kolomoiets <andreyk.mad@gmail.com>
Fri, 11 Dec 2020 13:55:22 +0000 (15:55 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Sun, 13 Dec 2020 02:00:49 +0000 (04:00 +0200)
* lisp/vc/vc.el (vc-create-tag): Use 'vc-revision-history' variable.

lisp/vc/vc.el

index b3b058396625c79701fea0a66ff98e799fb9779b..7d9af00de7c3295457a07d0fe2bb2d0b66072ab5 100644 (file)
@@ -2325,7 +2325,8 @@ checked out in that new branch."
          ;; to ask for a directory, branches are created at repository level.
          default-directory
        (read-directory-name "Directory: " default-directory default-directory t))
-      (read-string (if current-prefix-arg "New branch name: " "New tag name: "))
+      (read-string (if current-prefix-arg "New branch name: " "New tag name: ")
+                   nil 'vc-revision-history)
       current-prefix-arg)))
   (message "Making %s... " (if branchp "branch" "tag"))
   (when (file-directory-p dir) (setq dir (file-name-as-directory dir)))