Skip to content

Commit

Permalink
magit-tag-release: also read message for --sign/--local-user
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
corecode committed Feb 28, 2024
1 parent 039a180 commit 609c701
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lisp/magit-tag.el
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 609c701

Please sign in to comment.