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

Unique abbreviated Commit IDs #238

Closed
ajoberstar opened this issue Jun 6, 2018 · 0 comments · Fixed by #248
Closed

Unique abbreviated Commit IDs #238

ajoberstar opened this issue Jun 6, 2018 · 0 comments · Fixed by #248
Milestone

Comments

@ajoberstar
Copy link
Owner

A unique abbreviated commit ID can be retrieved with ObjectReader. That should be the default if no arguments are provided:

getAbbreviatedId() should return a 7 character or longer (as needed to be unique)
getAbbreviatedId(int) should retain the current behavior of just giving you the exact length you asked for

However, it may make sense to deprecate the int variant.

@ajoberstar ajoberstar added this to the 2.3.0 milestone Jun 6, 2018
@ajoberstar ajoberstar modified the milestones: 2.3.0, 3.0.0 Jul 3, 2018
ajoberstar added a commit that referenced this issue Jul 3, 2018
JGit provides a method that ensures uniqueness. This is safer than the
old approach that just substringed. That option is still around, but
deprecated.

This fixes #238.
ajoberstar added a commit that referenced this issue Jul 4, 2018
JGit provides a method that ensures uniqueness. This is safer than the
old approach that just substringed. That option is still around, but
deprecated.

This fixes #238.
@ajoberstar ajoberstar modified the milestones: 3.0.0, 2.3.0 Jul 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant