feat: alias to sign arbitrary tags

This commit is contained in:
Ben Grande 2024-03-19 19:55:21 +01:00
parent 1afa166f3e
commit d3222aab71
No known key found for this signature in database
GPG Key ID: 00C64E14F51F9E56

View File

@ -76,10 +76,11 @@
sub-update = !sh -c 'git checkout $1 && git submodule update --recursive'
; Signed tags and commits
stag = "!sh -c '\
commit_id=\"$(git rev-parse --verify HEAD)\"; \
commit_id=\"$(git rev-parse --verify \"$@\")\"; \
tag_name=\"signed_tag_for_$(echo $commit_id | head -c 8)\"; \
git tag -s \"$tag_name\" -m \"Tag for commit $commit_id\"; \
echo \"$tag_name\"'"
git tag -s \"$tag_name\" \
-m \"Tag for commit $commit_id\" \"$commit_id\"; \
echo \"$tag_name\"'" -
ptag = !git push $(git config branch.$(git branch --show-current).remote) $(git describe)
vtag = !git verify-tag -v $(git describe)
vhci = !git verify-commit -v $(git rev-parse HEAD)