Add example "git-tag-script" to show how to create signed tag objects.

This commit is contained in:
Linus Torvalds 2005-04-25 15:23:53 -07:00
parent 56ce69f7af
commit 65f0d0ee46

8
git-tag-script Executable file
View file

@ -0,0 +1,8 @@
#!/bin/sh
object=${2:-$(cat .git/HEAD)}
type=$(cat-file -t $object) || exit 1
( echo -e "object $object\ntype $type\ntag $1\n"; cat ) > .tmp-tag
rm -f .tmp-tag.asc
gpg -bsa .tmp-tag && cat .tmp-tag.asc >> .tmp-tag
git-mktag < .tmp-tag
#rm .tmp-tag .tmp-tag.sig