{"thread":{"id":"46748","subject":"should \"git tag\" option of \"-a\" conflict with \"-s\", \"-u\"?","startedAt":"2017-09-14T10:08:17Z","lastAt":"2017-09-14T12:16:00Z","messageCount":2,"participants":["Robert P. J. Day","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"328040","messageId":"alpine.LFD.2.21.1709130741120.2766@localhost.localdomain","threadId":"46748","inReplyTo":null,"subject":"should \"git tag\" option of \"-a\" conflict with \"-s\", \"-u\"?","fromName":"Robert P. J. Day","fromEmail":"rpjday@crashcourse.ca","sentAt":"2017-09-14T10:08:10Z","receivedAt":"2017-09-14T10:08:17Z","isPatch":false,"sender":{"key":"rpjday@crashcourse.ca","avatar":"https://avatars.githubusercontent.com/u/226084077?v=4"},"body":"\n  just noticed in \"man git-tag\":\n\n  1)  \"-a\" explicitly claims to create an unsigned tag\n  2)  both \"-s\" and \"-u\" both claim to create signed tags\n\nshould that mean that it should be an error to try to use \"-a\" in\ncombination with either of \"-u\" or \"-s\"? the synopsis does suggest\nthat you can use only one of those at a time:\n\n  git tag [-a | -s | -u <keyid>] ...\n\nbut i tested with (from memory) using both \"-a\" and \"-s\", and tag\nactually tried to do it, but failed simply because i had no key.\nclearly, though, it was making the attempt.\n\n  can someone clarify this?\n\nrday\n\n-- \n\n========================================================================\nRobert P. J. Day                                 Ottawa, Ontario, CANADA\n                        http://crashcourse.ca\n\nTwitter:                                       http://twitter.com/rpjday\nLinkedIn:                               http://ca.linkedin.com/in/rpjday\n========================================================================\n"},{"id":"328043","messageId":"20170914121553.mk4qksus2hqeqlh4@sigill.intra.peff.net","threadId":"46748","inReplyTo":"alpine.LFD.2.21.1709130741120.2766@localhost.localdomain","subject":"Re: should \"git tag\" option of \"-a\" conflict with \"-s\", \"-u\"?","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2017-09-14T12:15:54Z","receivedAt":"2017-09-14T12:16:00Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Thu, Sep 14, 2017 at 06:08:10AM -0400, Robert P. J. Day wrote:\n\n>   just noticed in \"man git-tag\":\n> \n>   1)  \"-a\" explicitly claims to create an unsigned tag\n>   2)  both \"-s\" and \"-u\" both claim to create signed tags\n> \n> should that mean that it should be an error to try to use \"-a\" in\n> combination with either of \"-u\" or \"-s\"? the synopsis does suggest\n> that you can use only one of those at a time:\n> \n>   git tag [-a | -s | -u <keyid>] ...\n> \n> but i tested with (from memory) using both \"-a\" and \"-s\", and tag\n> actually tried to do it, but failed simply because i had no key.\n> clearly, though, it was making the attempt.\n> \n>   can someone clarify this?\n\nI think the documentation could be a little more clear. \"-a\" just asks\nto create a tag object, rather than a \"lightweight\" tag. Using \"-s\" asks\nfor a signature, which requires having a tag object, and thus implies\n\"-a\".\n\nSo there's no point in using the two together (since \"-s\" already\nimplies \"-a\"), but it also doesn't hurt to do so.\n\n-Peff\n"}]}