repo.or.cz
/
git
/
debian.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Stylistic fixes to sha1_file.c
[git/debian.git]
/
git-tag-script
blob
ccc75dcfbdd70e738f088a43aec9dc2866e3923c
1
#!/bin/sh
2
object
=
${2:-$(cat .git/HEAD)}
3
type
=
$
(
git-cat-file
-t
$object
)
||
exit
1
4
(
echo -e
"object
$object
\n
type
$type
\n
tag
$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