From 609c701a260391998684a2613e613ca7372df0c4 Mon Sep 17 00:00:00 2001 From: Simon Schubert <2@0x2c.org> Date: Wed, 28 Feb 2024 14:46:09 -0600 Subject: [PATCH] magit-tag-release: also read message for --sign/--local-user git tag requires a message for all "heavy" tags that have an associated tag object. --annotate, --sign, and --local-user= all create tag objects. Make magit-tag-release read a message in all of these cases. --- lisp/magit-tag.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/magit-tag.el b/lisp/magit-tag.el index 928c7ff36c..823be0932b 100644 --- a/lisp/magit-tag.el +++ b/lisp/magit-tag.el @@ -192,7 +192,9 @@ like \"/path/to/foo-bar\"." (match-string 2 tag))) (args (magit-tag-arguments))) (list tag - (and (member "--annotate" args) + (and (or (member "--annotate" args) + (member "--sign" args) + (some (lambda (x) (string-prefix-p "--local-user" x)) args)) (read-string (format "Message for %S: " tag) (cond ((and pver (string-match (regexp-quote pver) pmsg))