Skip to content
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

Closed
martinmosegaard opened this issue Aug 10, 2018 · 5 comments
Closed

Support for git describe abbrev length #254

martinmosegaard opened this issue Aug 10, 2018 · 5 comments

Comments

@martinmosegaard
Copy link

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 use git describe --abbrev=N. But that does not seem to be supported by grgit.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:

@ajoberstar
Copy link
Owner

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.

@martinmosegaard
Copy link
Author

Thanks for the help with JGit. I have opened https://bugs.eclipse.org/bugs/show_bug.cgi?id=537883 for JGit.

@5deags
Copy link

5deags commented Jul 13, 2022

@sschuberth
Copy link
Contributor

Seems to be supported now

Thanks for reminding me, I had completely forgotten to comment back here after I add this upstream 😉

@ajoberstar
Copy link
Owner

As is now noted in the readme this plugin is feature frozen. No new features will be added.

@ajoberstar ajoberstar closed this as not planned Won't fix, can't repro, duplicate, stale Oct 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants