Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
git checkout \
$(git show -s --pretty='%T' \
$(git show-ref -d \
$(git describe --abbrev=0) |\ # grab the most recent tag
tail -n1 |\
awk '{print $1}'\ # dereference the commit hash it refers to
)\ # ... show the tree-hash it points at
) -- test # check that version's "test/" directory out into cwd
make test # if this fails, you should bump major,
# otherwise bump minor or patch.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment