git/list[1] front-page[2] threads[3] people[4] search[5] about
 

should "git tag" option of "-a" conflict with "-s", "-u"?

From
Robert P. J. Day <rpjday@crashcourse.ca>
Date
Sep 14, 2017, 10:08 UTC
Message-ID
<alpine.LFD.2.21.1709130741120.2766@localhost.localdomain>
  just noticed in "man git-tag":
  1)  "-a" explicitly claims to create an unsigned tag
  2)  both "-s" and "-u" both claim to create signed tags

should that mean that it should be an error to try to use "-a" in combination with either of "-u" or "-s"? the synopsis does suggest that you can use only one of those at a time:

  git tag [-a | -s | -u <keyid>] ...

but i tested with (from memory) using both "-a" and "-s", and tag actually tried to do it, but failed simply because i had no key. clearly, though, it was making the attempt.

  can someone clarify this?
rday
-- 
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
Next: Jeff King
Message 1 of 2 in “should "git tag" option of "-a" conflict with "-s", "-u"?”
  1. Robert P. J. DaySep 14, 2017
  2. Jeff KingSep 14, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.