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

Added support for reading the long git sha1 and the current git tag. #10

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

haath
Copy link

@haath haath commented Jul 15, 2020

Hello!

I have implemented three new methods.


var longSha1: String = CompileTime.buildGitCommitShaLong();

Similar to buildGitCommitSha(), but returns the full sha1 instead of the shorter version.


var tagDescr: String = CompileTime.buildGitTagDescription();

Returns the output of: git describe --tags

Will either be the current tag (e.g v1.0.2) or the latest tag with the short sha1 (e.g v1.0.2-104ad4e).


var tag: String = Compiletime.buildGitTag();

Returns the output of: git describe --tags --exact-match

Will either be the current tag or null.

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.

1 participant