Skip to content

abbreviated commit id #8

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

Merged
merged 1 commit into from
Apr 26, 2011
Merged

abbreviated commit id #8

merged 1 commit into from
Apr 26, 2011

Conversation

boulter
Copy link
Contributor

@boulter boulter commented Apr 22, 2011

This adds the abbreviated commit id to the output. Thanks!

ktoso added a commit that referenced this pull request Apr 26, 2011
@ktoso ktoso merged commit bab0f88 into git-commit-id:master Apr 26, 2011
@ktoso
Copy link
Collaborator

ktoso commented Apr 26, 2011

Thanks a lot for this pull request :-)
Mergeing it right into master~!

Will release this feature to sonatype maven as part of "1.3".
I may change the name of the property and play around with "is this really enough characters?" but it's going in :-)

StoredConfig config = git.getConfig();

if (config != null) {
abbrevLength = config.getInt("core", "abbrev", DEFAULT_COMMIT_ABBREV_LENGTH);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, very nice. That should take care of our "is this enought" problem. Thanks

@ktoso
Copy link
Collaborator

ktoso commented Apr 27, 2011

I pushed the up to date version ot the SNAPSHOT repository, feel free to check it out. I'll release a stable 1.3 soon :-)
Thanks again for the commit.

@boulter
Copy link
Contributor Author

boulter commented Apr 27, 2011

Looks great. Thanks for merging. The documentation is really good too. I look forward to 1.3 on the sonatype repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants