Skip to content

libify verify_tag()

Jonathan Nieder git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5tag -v: use ‘git verify-tag’ without dashbuiltin/tag.c+2 -22 replies
2/5verify-tag: use sigchain library to block SIGPIPEbuiltin/verify-tag.c+8 -30 replies
3/5Expose verify_tag()Makefile builtin/verify-tag.c tag.h +1 more+4 -1170 replies
4/5tag -v: Do not spawn a separate process for verify-tagbuiltin/tag.c+1 -51 reply
5/5verify_tag_signature(): let caller look up tag object sha1builtin/tag.c builtin/verify-tag.c tag.h +1 more+18 -90 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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%)