projects
/
git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Add example "git-tag-script" to show how to create signed tag objects.
[git]
/
git-tag-script
1
#!/bin/sh
2
object=${2:-$(cat .git/HEAD)}
3
type=$(cat-file -t $object) || exit 1
4
( echo -e "object $object\ntype $type\ntag $1\n"; cat ) > .tmp-tag
5
rm -f .tmp-tag.asc
6
gpg -bsa .tmp-tag && cat .tmp-tag.asc >> .tmp-tag
7
git-mktag < .tmp-tag
8
#rm .tmp-tag .tmp-tag.sig