Skip to content

Commit 7630ec9

Browse files
authored
typo: gitTagToVersionNumberSetting (#222)
fixes #221
1 parent b1df0b1 commit 7630ec9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ You can begin to use git to control your project versions.
7272
The git plugin will now autogenerate your version using the following rules, in order:
7373

7474
1. Looks at version-property setting (default to `project.version`), and checks the `sys.props` to see if this has a value. If so, use it.
75-
2. Otherwise, looks at the project tags. The first to match the `gitTagToVersionNumberSetting` is used to assign the version. The default is to look for tags that begin with `v` and a number, and use the number as the version. If there are multiple version tags, it will pick the highest.
75+
2. Otherwise, looks at the project tags. The first to match the `gitTagToVersionNumber` setting is used to assign the version. The default is to look for tags that begin with `v` and a number, and use the number as the version. If there are multiple version tags, it will pick the highest.
7676
3. If no tags are found either, look at the head commit. We attach this to the `git.baseVersion` setting: "<base-version>.<git commit sha>"
7777
4. If no head commit is present either (which means this is a brand-new repository with no commits yet), we append the current timestamp to the base version: "<base-version>.<timestamp>".
7878

src/main/scala/com/github/sbt/git/GitPlugin.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ object SbtGit {
174174
* Versioning runs through the following:
175175
*
176176
* 1. Looks at version-property settings, and checks the sys.props to see if this has a value.
177-
* 2. Looks at the project tags. The first to match the `gitTagToVersionNumberSetting` is used to assign the version.
177+
* 2. Looks at the project tags. The first to match the `gitTagToVersionNumber` setting is used to assign the version.
178178
* 3. if we have a head commit, we attach this to the base version setting "<base-version>.<git commit sha>"
179179
* 4. We append the current timestamp to the base version: "<base-version>.<timestamp>"
180180
*/

0 commit comments

Comments
 (0)