8
while case $# in 0) break;; esac
11
-v|--v|--ve|--ver|--verb|--verbo|--verbos|--verbose)
24
type="$(git-cat-file -t "$1" 2>/dev/null)" ||
25
die "$1: no such object."
28
die "$1: cannot verify a non-tag object of type $type."
32
git-cat-file -p "$1" |
33
sed -n -e '/^-----BEGIN PGP SIGNATURE-----/q' -e p
37
git-cat-file tag "$1" >"$GIT_DIR/.tmp-vtag" || exit 1
38
cat "$GIT_DIR/.tmp-vtag" |
39
sed '/-----BEGIN PGP/Q' |
40
gpg --verify "$GIT_DIR/.tmp-vtag" - || exit 1
41
rm -f "$GIT_DIR/.tmp-vtag"