"Available constants" are undocumented. #224
pklapperich
started this conversation in
Ideas
Replies: 1 comment
|
Would you consider sending a PR? |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Not all of the available constants are immediately obvious. It would be nice if they were documented similar to the available customizations.
git remote get-url origingit describe-{added_commits}-g$(GitCommit)where{added_commits}is the commits added since the last tag. This is similar to the output ofgit describe --tags, except no tag name is included unless the current commit is tagged.GitTagRegexGitBaseVersionRegexGitBaseVersionRegexGitBaseVersionRegexGitBaseVersionMajorGitBaseVersionMinorGitBaseVersionPatchandGitCommits. This is useful for automatically increasing the Patch value whenever commits are made without the need to manually edit the Version File or add a new tag.GitBaseVersionRegexGitSemVerLabel, but preceded by a dash. This is useful for reducing conditional statements when the label is optionalFileor a parsing aTagAll reactions