add shltag
This commit is contained in:
parent
45bab3c745
commit
560f8b91ed
14
bin/shltag
Executable file
14
bin/shltag
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
old=$(git tag | tail -n1)
|
||||
case $1 in
|
||||
v*)
|
||||
git shortlog $old..HEAD | git tag -as -F - $1
|
||||
exit;;
|
||||
--help)
|
||||
echo Usage: shltag '[v<version> | --help | -o ]'
|
||||
exit;;
|
||||
-o)
|
||||
# show old tag
|
||||
echo old is $old;;
|
||||
esac
|
Loading…
Reference in New Issue
Block a user