author | Linus Torvalds <torvalds@osdl.org> | |
Thu, 6 Oct 2005 21:10:39 +0000 (14:10 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 6 Oct 2005 21:23:29 +0000 (14:23 -0700) | ||
commit | bc162e40ea6dc3208e3bda76301d6409607ed3ff | |
tree | 036b80c3359820af7334edbef28fa2ceca0c565f | tree | snapshot |
parent | 12aac5de3dd73a1f9d03f81c5b0087e71794cee7 | commit | diff |
Allow "-u" flag to tag signing
The current "git tag -s" thing always uses the tagger name as the signing
user key, which is very irritating, since my key is under my email
address, but the tagger key obviously contains the actual machine name
too.
Now, I could just use "GIT_COMMITTER_EMAIL" and force it to be my real
email, but I actually think that it's nice to see which machine I use for
my work.
So rather than force my tagger ID to have to match the gpg key name, just
support the "-u" flag to "git tag" instead. It implicitly enables signing,
since it doesn't make any sense without it. Thus:
git tag -u <gpg-key-name> <tag-name> [<tagged-object>]
will use the named gpg key for signing.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
The current "git tag -s" thing always uses the tagger name as the signing
user key, which is very irritating, since my key is under my email
address, but the tagger key obviously contains the actual machine name
too.
Now, I could just use "GIT_COMMITTER_EMAIL" and force it to be my real
email, but I actually think that it's nice to see which machine I use for
my work.
So rather than force my tagger ID to have to match the gpg key name, just
support the "-u" flag to "git tag" instead. It implicitly enables signing,
since it doesn't make any sense without it. Thus:
git tag -u <gpg-key-name> <tag-name> [<tagged-object>]
will use the named gpg key for signing.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/git-tag.txt | diff | blob | history | |
git-tag.sh | diff | blob | history |