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

[PATCH/RFC 0/5] libify verify_tag()

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Mar 20, 2010, 05:09 UTC
Message-ID
<20100320050953.GA24746@progeny.tock>
Hi,

I noticed that ‘git tag -v’ runs git-verify-tag (dashed form), and while fixing that, I thought, why not make cmd_tag() run verify_tag() directly? Here is what that would look like.

The performance impact is pretty negligible: t/t7004-tag.sh is about 2% faster after the change here (with hot or cold cache, it doesn’t matter).

What do you think?
Jonathan Nieder (5):
  tag: Run ‘git verify-tag’ using its undashed name
  verify-tag: use sigchain library to block SIGPIPE
  Expose verify_tag()
  tag: Do not spawn a separate process for verify-tag
  verify_tag_signature(): let caller look up tag object sha1
 Makefile                             |    1 +
 builtin/tag.c                        |    6 +--
 builtin/verify-tag.c                 |   84 ++++------------------------------
 tag.h                                |    2 +
 builtin/verify-tag.c => verify-tag.c |   49 ++++----------------
 5 files changed, 22 insertions(+), 120 deletions(-)
 copy builtin/verify-tag.c => verify-tag.c (61%)
Next: Jonathan Nieder
Message 1 of 9 in “libify verify_tag()”
  1. 0/5 libify verify_tag()Jonathan Nieder, Mar 20, 2010
  2. 1/5 tag -v: use ‘git verify-tag’ without dashJonathan Nieder, Mar 20, 2010
  3. Johannes SixtMar 20, 2010
  4. Jonathan NiederMar 20, 2010
  5. 2/5 verify-tag: use sigchain library to block SIGPIPEJonathan Nieder, Mar 20, 2010
  6. 3/5 Expose verify_tag()Jonathan Nieder, Mar 20, 2010
  7. 4/5 tag -v: Do not spawn a separate process for verify-tagJonathan Nieder, Mar 20, 2010
  8. 4/5 tag -v: Do not spawn a separate process for verify-tagJonathan Nieder, Mar 20, 2010
  9. 5/5 verify_tag_signature(): let caller look up tag object sha1Jonathan Nieder, Mar 20, 2010

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.