Skip to content

Commit

Permalink
Add example "git-tag-script" to show how to create signed tag objects.
Browse files Browse the repository at this point in the history
  • Loading branch information
Linus Torvalds committed Apr 25, 2005
1 parent 56ce69f commit 65f0d0e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions git-tag-script
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 65f0d0e

Please sign in to comment.