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

Re: [PATCH] "git-tag -s" should create a signed annotated tag

From
CRCarlos Rica <jasampler@gmail.com>
Date
Nov 26, 2007, 04:51 UTC
Message-ID
<1b46aba20711252051x5ec7398er6806f21e179583d4@mail.gmail.com>
In-Reply-To
<7vprxxj4hl.fsf@gitster.siamese.dyndns.org>
On Nov 26, 2007 12:21 AM, Junio C Hamano <gitster@pobox.com> wrote:
Show 6 quoted lines
> The earlier patch 396865859918e9c7bf8ce74aae137c57da134610 (Make
> builtin-tag.c use parse_options.) broke "git-tag -s".
>
>  * It's _very_ disturbing that the testsuite did not catch this
>    breakage, even though I though we had a very detailed coverage for
>    "git tag" when it was rewritten in C.

Yes, you're right, "-s" without -m or -F is creating lightweight tags in my proposal.

I think it is due to the absence of tests checking the "editor" option, that is, calls without -m or -F options to provide the message, since the tests are using only those and they are enabling automatically the creation of annotated tags.

I need to think in adding tests replacing the editor with a custom command to check also the correct behaviour of git-tag when the EDITOR and/or the other variables are set.

At the end, I've learned that it's better to test a little of every feature than test completely only a few of them.

Thank you.
Previous: Jeff King
Message 3 of 3 in “"git-tag -s" should create a signed annotated tag”
  1. "git-tag -s" should create a signed annotated tagJunio C Hamano, Nov 25, 2007
  2. Jeff KingNov 26, 2007
  3. Carlos RicaNov 26, 2007

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.