Existing tag names can't be reused, so there's really no need to list them all (thereby parsing the output of git-tag(1)) as possible options when tagging a rev. Besides being perfectly sufficient, `read-string' is much more performant in repos with large amounts of tags.
This is a partial revert of commit 7cff9f04. Signed-off-by: Pieter Praet <[email protected]> --- magit.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/magit.el b/magit.el index 20becee..0ffb972 100644 --- a/magit.el +++ b/magit.el @@ -5706,7 +5706,7 @@ (defun magit-add-log () \('git tag NAME REV')." (interactive (list - (magit-read-tag "Tag name: ") + (read-string "Tag name: ") (magit-read-rev "Place tag on: " (or (magit-default-rev) "HEAD")))) (apply #'magit-run-git "tag" (append magit-custom-options (list name rev)))) @@ -5715,7 +5715,7 @@ (defun magit-add-log () \('git tag -a NAME REV')." (interactive (list - (magit-read-tag "Tag name: ") + (read-string "Tag name: ") (magit-read-rev "Place tag on: " (or (magit-default-rev) "HEAD")))) (magit-log-edit-set-field 'tag-name name) (magit-log-edit-set-field 'tag-rev rev) -- 1.7.11.1 -- --- You received this message because you are subscribed to the Google Groups "magit" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
