diff options
author | SeongJae Park <sj@kernel.org> | 2023-12-22 15:24:17 -0800 |
---|---|---|
committer | SeongJae Park <sj@kernel.org> | 2023-12-22 15:24:32 -0800 |
commit | bad22c6d9e72664758692291c6cbc5b1d57bbe8e (patch) | |
tree | 742eb1771b2045bac9482e7eb4a5d12fdb85af03 | |
parent | 041ef41320eaa2316b0a636b0be054aa95a8e77c (diff) | |
download | damon-hack-bad22c6d9e72664758692291c6cbc5b1d57bbe8e.tar.gz |
Add a script for tagging and pushing
The script is same to tag_damon_next.sh but finds baseline
automatically, doesn't add "mm-unstable" to the tag name, and push by
default.
Signed-off-by: SeongJae Park <sj@kernel.org>
-rwxr-xr-x | tag_push.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tag_push.sh b/tag_push.sh new file mode 100755 index 0000000..c65517d --- /dev/null +++ b/tag_push.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +echo "ensure gpg password" +bindir=$(dirname "$0") +"$bindir/ensure_gpg_password.sh" + +datetime=$(date +"%Y-%m-%d-%H-%M") +baseline=$(git describe --match "v*" --abbrev=0) +tagname=damon/next-$datetime-on-$baseline +echo "tagging as $tagname" +git tag -as "$tagname" -m "A snapshot of damon/next" +echo "push" +"$bindir/_push_tag.sh" "$tagname" |