-
Notifications
You must be signed in to change notification settings - Fork 96
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
Support for git describe abbrev length #254
Comments
It doesn't look like JGit's DescribeCommand supports specifying a fixed length for the abbreviated sha. If you happen to open an issue (or find one already open), please link it here so we can monitor the progress. |
Thanks for the help with JGit. I have opened https://bugs.eclipse.org/bugs/show_bug.cgi?id=537883 for JGit. |
Thanks for reminding me, I had completely forgotten to comment back here after I add this upstream 😉 |
As is now noted in the readme this plugin is feature frozen. No new features will be added. |
Since Git 2.11, the default abbreviation length is no longer always 7 digits. This means that the output of a plain
git describe
may vary. To get consistent behavior, we can usegit describe --abbrev=N
. But that does not seem to be supported bygrgit.describe
.I am not familiar with jgit and whether this feature request should be reported there.
This issue seems related: #238
and I am able to get a specific number of digits with the
getAbbreviatedId
function like:grgit.head().getAbbreviatedId(7)
.For background on the Git change, see:
The text was updated successfully, but these errors were encountered: