Skip to content

Commit

Permalink
Add check-release-tags to zsh functions
Browse files Browse the repository at this point in the history
  • Loading branch information
e0da committed Mar 21, 2018
1 parent 874867e commit 63f5843
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions files/zsh/functions.zsh
Expand Up @@ -30,6 +30,16 @@ function taon {
tmux attach -t "$name" || tmux new -s "$name"
}

# Prints the names of any tags containing the word release that are not found in
# the CHANGELOG or Rakefile (CHANGELOG lists all releases; Rakefile lists all
# tags (which may or may not exist anymore) which were created erroneously and
# do not correspond to a release.
function check-release-tags() {
git tag | grep release | while read tag; do
grep $tag CHANGELOG.md Rakefile >/dev/null || echo $tag
done
}

# enable pasting of command lines beginning with $. When do you ever mean to
# start a command with '$'?
#
Expand Down

0 comments on commit 63f5843

Please sign in to comment.