~hedy/dotfiles

dotfiles/bin/shltag -rwxr-xr-x 237 bytes
ff569005 — Hedy Li fix typo in aerc 8 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
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