lein-git-version
lein-git-version copied to clipboard
Why --abbrev=4 ?
This just bit me when I tried to copy-paste the 7-char version tag from git describe directly into my dependencies. Is there a reason for why lein git-version only uses a 4 character subset of these?
This is merely 4 because it is so. No real reason. If you want to use something else you can update your ~/.lein/profiles.clj to include something like
{:user {:plugins :git-version {:version-cmd "git describe --match v*.* --abbrev=7 --dirty"}}