lein-git-version icon indicating copy to clipboard operation
lein-git-version copied to clipboard

Why --abbrev=4 ?

Open venantius opened this issue 11 years ago • 1 comments

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?

venantius avatar Nov 06 '14 21:11 venantius

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"}}

joekiller avatar Feb 21 '18 19:02 joekiller