Skip to content

Instantly share code, notes, and snippets.

@chrisdickinson
Created January 23, 2015 23:28
Show Gist options
  • Star 25 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save chrisdickinson/ba532fa0e4e243fb7b44 to your computer and use it in GitHub Desktop.
Save chrisdickinson/ba532fa0e4e243fb7b44 to your computer and use it in GitHub Desktop.
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