0
0
mirror of https://github.com/signalapp/libsignal.git synced 2024-09-19 19:42:19 +02:00

Add tag_it.sh script to aid tagging

This commit is contained in:
moiseev-signal 2023-08-09 15:05:56 -07:00 committed by GitHub
parent 716e683324
commit c292fd9a84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

27
bin/tag_it.sh Executable file
View File

@ -0,0 +1,27 @@
#!/bin/sh
#
# Copyright 2023 Signal Messenger, LLC.
# SPDX-License-Identifier: AGPL-3.0-only
#
#set -ex
if [ -z "$1" ]
then
echo "usage: $(basename "$0") NEW_TAG"
exit 1
fi
NEW_TAG="$1"
MOST_RECENT_TAG=$(git describe --abbrev=0)
TAG_FILE=$(mktemp)
echo "$NEW_TAG" > "$TAG_FILE"
echo "
# Edit this file as you see fit and it will become the tag annotation.
# Lines started with '#' will-as usual-be ignored.
" >> "$TAG_FILE"
git log "$MOST_RECENT_TAG"..@ --pretty="format:- %s" >> "$TAG_FILE"
git tag -a "$NEW_TAG" -e -F "$TAG_FILE"