-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A way to get closest tag from current commit #130
Comments
👍 |
@ImUrX Maybe you want use this git commands: |
Do you mind telling me the difference? |
@ImUrX When I use this commands on my mac os : ➜ shadow-rs git:(master) git describe --abbrev=0 HEAD
fatal: No annotated tags can describe '57280c4a24b3b9a24feec5dfc09b5066cac7fde8'.
However, there were unannotated tags: try --tags. Then add ➜ shadow-rs git:(master) git describe --tags --abbrev=0 HEAD
v0.20.1
➜ shadow-rs git:(master) Git version➜ shadow-rs git:(master) git version
git version 2.39.2
➜ shadow-rs git:(master) |
@ImUrX So, Do you still anticipate the LAST_TAG feature? If you are looking forward to this feature, I can complete it. |
Yeah, it would be nice having it! |
@ImUrX Now, you can upgrade new version by use shadow-rs = "0.21.0" |
We are representing versioning with git and I want to do
v1.0.0/commit_hash
instead of justcommit_hash
. Maybe adding a new constant calledLAST_TAG
would be nice.In git commands for doing this,
git describe --abbrev=0 HEAD
should work out.The text was updated successfully, but these errors were encountered: