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

Git versioning 2 #825

Merged
merged 2 commits into from
Sep 22, 2015
Merged

Git versioning 2 #825

merged 2 commits into from
Sep 22, 2015

Conversation

soup-in-boots
Copy link

Fixed the broken of two reverted patches such that it only returns the latest tag and no additional abbreviation, thus leaving the abbreviation to rebar.

Zachary Hueras added 2 commits September 21, 2015 11:36
In the scenario that someone had cloned an entire
repository and then checked out an older version
tag, the semantic versioning would detect the
newest tag, not the checked out tag. Look for
the HEAD string prior to tag: to indicate the
currently selected tag.
In the scenario we that we have selected a commit
that is between two tags, we should base the
version on the most recent tag we can see in the
revision history, but we should not treat this as
the tag version.

`git describe --tags --abbrev=0` finds the most
recent tag visible in the revision history from
the current HEAD. Return this as the version
string and undefined as the tag to trigger ref
counting.
tsloughter added a commit that referenced this pull request Sep 22, 2015
@tsloughter tsloughter merged commit 86478aa into erlang:master Sep 22, 2015
@soup-in-boots soup-in-boots deleted the git-versioning-2 branch September 22, 2015 16:32
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