{"thread":{"id":"6199","subject":"[PATCH] git-tag: add flag to verify a tag","startedAt":"2007-01-03T12:59:00Z","lastAt":"2007-01-03T23:17:49Z","messageCount":4,"participants":["Santi Béjar","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"30743","messageId":"877iw4tgff.fsf@gmail.com","threadId":"6199","inReplyTo":null,"subject":"[PATCH] git-tag: add flag to verify a tag","fromName":"Santi Béjar","fromEmail":"sbejar@gmail.com","sentAt":"2007-01-03T12:59:00Z","receivedAt":"2007-01-03T12:59:00Z","isPatch":true,"sender":{"key":"santi@agolina.net","avatar":null},"body":"\nThis way \"git tag -v $tag\" is the UI for git-verify-tag.\n---\n Documentation/git-tag.txt |    7 ++++++-\n generate-cmdlist.sh       |    1 -\n git-tag.sh                |   10 +++++++++-\n 3 files changed, 15 insertions(+), 3 deletions(-)\n\ndiff --git a/Documentation/git-tag.txt b/Documentation/git-tag.txt\nindex 48b82b8..80bece0 100644\n--- a/Documentation/git-tag.txt\n+++ b/Documentation/git-tag.txt\n@@ -9,7 +9,7 @@ git-tag - Create a tag object signed with GPG\n SYNOPSIS\n --------\n [verse]\n-'git-tag' [-a | -s | -u <key-id>] [-f | -d] [-m <msg> | -F <file>]\n+'git-tag' [-a | -s | -u <key-id>] [-f | -d | -v] [-m <msg> | -F <file>]\n \t <name> [<head>]\n 'git-tag' -l [<pattern>]\n \n@@ -35,6 +35,8 @@ GnuPG key for signing.\n \n `-d <tag>` deletes the tag.\n \n+`-v <tag>` verifies the gpg signature of the tag.\n+\n `-l <pattern>` lists tags that match the given pattern (or all\n if no pattern is given).\n \n@@ -55,6 +57,9 @@ OPTIONS\n -d::\n \tDelete an existing tag with the given name\n \n+-v::\n+\tVerify the gpg signature of given the tag\n+\n -l <pattern>::\n \tList tags that match the given pattern (or all if no pattern is given).\n \ndiff --git a/generate-cmdlist.sh b/generate-cmdlist.sh\nindex 06c42b0..1de14ea 100755\n--- a/generate-cmdlist.sh\n+++ b/generate-cmdlist.sh\n@@ -37,7 +37,6 @@ show\n show-branch\n status\n tag\n-verify-tag\n EOF\n while read cmd\n do\ndiff --git a/git-tag.sh b/git-tag.sh\nindex e1bfa82..c9e1180 100755\n--- a/git-tag.sh\n+++ b/git-tag.sh\n@@ -1,7 +1,7 @@\n #!/bin/sh\n # Copyright (c) 2005 Linus Torvalds\n \n-USAGE='-l [<pattern>] | [-a | -s | -u <key-id>] [-f | -d] [-m <msg>] <tagname> [<head>]'\n+USAGE='-l [<pattern>] | [-a | -s | -u <key-id>] [-f | -d | -v] [-m <msg>] <tagname> [<head>]'\n SUBDIRECTORY_OK='Yes'\n . git-sh-setup\n \n@@ -12,6 +12,7 @@ force=\n message=\n username=\n list=\n+verify=\n while case \"$#\" in 0) break ;; esac\n do\n     case \"$1\" in\n@@ -69,6 +70,13 @@ do\n \t\techo \"Deleted tag $tag_name.\"\n \texit $?\n \t;;\n+    -v)\n+\tshift\n+\ttag_name=\"$1\"\n+\ttag=$(git-show-ref --verify --hash -- \"refs/tags/$tag_name\") ||\n+\t\tdie \"Seriously, what tag are you talking about?\"\n+\tgit-verify-tag -v \"$tag\"\n+\texit $?\n     -*)\n         usage\n \t;;\n-- \n1.5.0.rc0.g91ea\n"},{"id":"30758","messageId":"7vac10oz54.fsf@assigned-by-dhcp.cox.net","threadId":"6199","inReplyTo":"877iw4tgff.fsf@gmail.com","subject":"Re: [PATCH] git-tag: add flag to verify a tag","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2007-01-03T16:25:59Z","receivedAt":"2007-01-03T16:25:59Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Santi Béjar <sbejar@gmail.com> writes:\n\n> This way \"git tag -v $tag\" is the UI for git-verify-tag.\n> ---\n>  Documentation/git-tag.txt |    7 ++++++-\n> ...\n\n\nSignoffs?\n"},{"id":"30759","messageId":"8aa486160701030836p181d2ffexaf1968aaad68628f@mail.gmail.com","threadId":"6199","inReplyTo":"7vac10oz54.fsf@assigned-by-dhcp.cox.net","subject":"Re: [PATCH] git-tag: add flag to verify a tag","fromName":"Santi Béjar","fromEmail":"sbejar@gmail.com","sentAt":"2007-01-03T16:36:49Z","receivedAt":"2007-01-03T16:36:49Z","isPatch":true,"sender":{"key":"santi@agolina.net","avatar":null},"body":"On 1/3/07, Junio C Hamano <junkio@cox.net> wrote:\n> Santi Béjar <sbejar@gmail.com> writes:\n>\n> > This way \"git tag -v $tag\" is the UI for git-verify-tag.\n> > ---\n> >  Documentation/git-tag.txt |    7 ++++++-\n> > ...\n>\n>\n> Signoffs?\n\nForgotten, long time since the last patch :-|\n\nSigned-off-by: Santi Béjar <sbejar@gmail.com>\n\nSanti\n"},{"id":"30780","messageId":"87tzz7zoma.fsf@gmail.com","threadId":"6199","inReplyTo":"877iw4tgff.fsf@gmail.com","subject":"[PATCH take 2] git-tag: add flag to verify a tag","fromName":"Santi Béjar","fromEmail":"sbejar@gmail.com","sentAt":"2007-01-03T23:17:49Z","receivedAt":"2007-01-03T23:17:49Z","isPatch":true,"sender":{"key":"santi@agolina.net","avatar":null},"body":"\nThis way \"git tag -v $tag\" is the UI for git-verify-tag.\n\nSigned-off-by: Santi Béjar <sbejar@gmail.com>\n---\n Hi *,\n\n But maybe the -v flag should give a similar output as:\n\n $ git branch -v\n\n Then this flag could be -c for check?\n\n This version has a syntax fix (sorry) and a typo fix.\n\n Documentation/git-tag.txt |    7 ++++++-\n generate-cmdlist.sh       |    1 -\n git-tag.sh                |   11 ++++++++++-\n 3 files changed, 16 insertions(+), 3 deletions(-)\n\ndiff --git a/Documentation/git-tag.txt b/Documentation/git-tag.txt\nindex 48b82b8..5cf114d 100644\n--- a/Documentation/git-tag.txt\n+++ b/Documentation/git-tag.txt\n@@ -9,7 +9,7 @@ git-tag - Create a tag object signed with GPG\n SYNOPSIS\n --------\n [verse]\n-'git-tag' [-a | -s | -u <key-id>] [-f | -d] [-m <msg> | -F <file>]\n+'git-tag' [-a | -s | -u <key-id>] [-f | -d | -v] [-m <msg> | -F <file>]\n \t <name> [<head>]\n 'git-tag' -l [<pattern>]\n \n@@ -35,6 +35,8 @@ GnuPG key for signing.\n \n `-d <tag>` deletes the tag.\n \n+`-v <tag>` verifies the gpg signature of the tag.\n+\n `-l <pattern>` lists tags that match the given pattern (or all\n if no pattern is given).\n \n@@ -55,6 +57,9 @@ OPTIONS\n -d::\n \tDelete an existing tag with the given name\n \n+-v::\n+\tVerify the gpg signature of the given tag\n+\n -l <pattern>::\n \tList tags that match the given pattern (or all if no pattern is given).\n \ndiff --git a/generate-cmdlist.sh b/generate-cmdlist.sh\nindex 06c42b0..1de14ea 100755\n--- a/generate-cmdlist.sh\n+++ b/generate-cmdlist.sh\n@@ -37,7 +37,6 @@ show\n show-branch\n status\n tag\n-verify-tag\n EOF\n while read cmd\n do\ndiff --git a/git-tag.sh b/git-tag.sh\nindex e1bfa82..c3e4e15 100755\n--- a/git-tag.sh\n+++ b/git-tag.sh\n@@ -1,7 +1,7 @@\n #!/bin/sh\n # Copyright (c) 2005 Linus Torvalds\n \n-USAGE='-l [<pattern>] | [-a | -s | -u <key-id>] [-f | -d] [-m <msg>] <tagname> [<head>]'\n+USAGE='-l [<pattern>] | [-a | -s | -u <key-id>] [-f | -d | -v] [-m <msg>] <tagname> [<head>]'\n SUBDIRECTORY_OK='Yes'\n . git-sh-setup\n \n@@ -69,6 +69,14 @@ do\n \t\techo \"Deleted tag $tag_name.\"\n \texit $?\n \t;;\n+    -v)\n+\tshift\n+\ttag_name=\"$1\"\n+\ttag=$(git-show-ref --verify --hash -- \"refs/tags/$tag_name\") ||\n+\t\tdie \"Seriously, what tag are you talking about?\"\n+\tgit-verify-tag -v \"$tag\"\n+\texit $?\n+\t;;\n     -*)\n         usage\n \t;;\n-- \n1.5.0.rc0.g1eb3\n"}]}