aboutsummaryrefslogtreecommitdiff
path: root/lisp/magit-git.el
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2025-08-01 21:34:51 +0200
committerJonas Bernoulli <jonas@bernoul.li>2025-08-01 21:34:51 +0200
commit96192521703420460020ec9a0470a3f9335b6530 (patch)
treea1c261c838ff9d551e91b7fb5adc04cf65bbea32 /lisp/magit-git.el
parent298771166c42c6fda7e8a01b873a975a360bd793 (diff)
magit-tag-create: No longer use magit-read-tag
This allows dropping the REQUIRE-MATCH argument from `magit-read-tag', because now all its callers do require a match (though some failed to specify so). Keep using completing read when creating a new tag and offer the existing tags as "choices". The idea is that makes it easier to see what tags already exist and pick another name for the new one.
Diffstat (limited to 'lisp/magit-git.el')
-rw-r--r--lisp/magit-git.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/magit-git.el b/lisp/magit-git.el
index 92290c8..aa9999a 100644
--- a/lisp/magit-git.el
+++ b/lisp/magit-git.el
@@ -2841,9 +2841,9 @@ out. Only existing branches can be selected."
(magit-stash-at-point)
(magit-get-current-branch)))
-(defun magit-read-tag (prompt &optional require-match)
- (magit-completing-read prompt (magit-list-tags) nil
- require-match nil 'magit-revision-history
+(defun magit-read-tag (prompt)
+ (magit-completing-read prompt (magit-list-tags) nil t nil
+ 'magit-revision-history
(magit-tag-at-point)))
(defun magit-read-stash (prompt)