-
Notifications
You must be signed in to change notification settings - Fork 47
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
Append +0 to first dirty version after tag #63
Conversation
ec04210
to
6805d32
Compare
Thanks for taking the time to look into this! So with this change a dirty repository on a tag has a version like What do you think? |
I think @xerial's suggestion (#53 (comment)) is even better than my original one:
To that end I think all that is needed is dropping the |
I think we're in violent agreement here, yes ;) |
Yep! Arnout's comment hadn't loaded in my tab by the time I got round to leaving my comment. |
I took a first stab at implementing this. The problem is that the output of git describe doesn't contain the SHA1 information. Should I get it from a second call to git? |
@leonardehrenfried probably you need to use
|
I didn't know about --long but it looks exactly like what we need. We can
use that output as is without any magic checking it seems.
I'll try it out.
Am 19.02.2018 10:17 nachm. schrieb "Alexey Alekhin" <
[email protected]>:
… @leonardehrenfried <https://github.com/leonardehrenfried> probably you
need to use --long option?
$ git describe
v2.0.2
$ git describe --long
v2.0.2-0-gd0b6f72
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#63 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAJPMiI2hbQheJTAdxzJ4MUcnZqBrl1yks5tWeTxgaJpZM4SJYSo>
.
|
Take into account that it has an extra letter |
We use Good find on |
f696593
to
5397882
Compare
I think this is good for another round of reviews. I removed the |
e392be6
to
5397882
Compare
Hmm, my plan to make this more elegant failed as it broke a scripted test. I revert that change. |
But I still think this ready to merge. |
@leonardehrenfried could you also update the readme? |
Thanks @leonardehrenfried. I'll try to get to this tomorrow. |
ed5fd36
to
651836d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you @leonardehrenfried, as well as @raboof and @laughedelic.
I wanted to fix #53 but you asked for #52 to be fixed first, so this adds a
+0
for dirty snapshots directly after a tag.In the original bug ticket you say that you also want to add
+0000
but I'm confused by this. There was also the suggestion about adding the commit SHA, too.Can you elaborate what should be there?
Fixes #52.