"Available constants" are undocumented. #224
pklapperich
started this conversation in
Ideas
Replies: 1 comment
-
Would you consider sending a PR? |
Beta Was this translation helpful? Give feedback.
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 origin
git 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.GitTagRegex
GitBaseVersionRegex
GitBaseVersionRegex
GitBaseVersionRegex
GitBaseVersionMajor
GitBaseVersionMinor
GitBaseVersionPatch
andGitCommits
. 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.GitBaseVersionRegex
GitSemVerLabel
, but preceded by a dash. This is useful for reducing conditional statements when the label is optionalFile
or a parsing aTag
Beta Was this translation helpful? Give feedback.
All reactions