X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=git-tag.sh;h=13759453077b025d7815354c61269c2a9847e68f;hb=c3df8568424684bbcc7df7722eb3ec34bdae8b2d;hp=6130904a94ddeffb15b1b10ded8336c67112c12e;hpb=52963a7a3fad7f3da7b4ec49824d92338a2ab668;p=git.git diff --git a/git-tag.sh b/git-tag.sh index 6130904a..13759453 100755 --- a/git-tag.sh +++ b/git-tag.sh @@ -4,7 +4,7 @@ . git-sh-setup || die "Not a git archive" usage () { - echo >&2 "Usage: git-tag [-a | -s | -u ] [-f] [-m ] []" + echo >&2 "Usage: git-tag [-a | -s | -u ] [-f | -d] [-m ] []" exit 1 } @@ -37,6 +37,13 @@ do shift username="$1" ;; + -d) + shift + tag_name="$1" + rm "$GIT_DIR/refs/tags/$tag_name" && \ + echo "Deleted tag $tag_name." + exit $? + ;; -*) usage ;;