You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/scala/com/github/sbt/git/GitPlugin.scala
+57-46Lines changed: 57 additions & 46 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
packagecom.github.sbt.git
2
2
3
-
importsbt._
4
-
importKeys._
3
+
importsbt.*
4
+
importKeys.*
5
5
6
6
/** This plugin has all the basic 'git' functionality for other plugins. */
7
7
objectSbtGit {
@@ -15,7 +15,8 @@ object SbtGit {
15
15
valgitCurrentTags=SettingKey[Seq[String]]("git-current-tags", "The tags associated with this commit.")
16
16
valgitHeadCommit=SettingKey[Option[String]]("git-head-commit", "The commit sha for the top commit of this project.")
17
17
valgitHeadMessage=SettingKey[Option[String]]("git-head-message", "The message for the top commit of this project.")
18
-
valgitHeadCommitDate=SettingKey[Option[String]]("git-head-commit-date", "The commit date for the top commit of this project in ISO-8601 format.")
18
+
valgitHeadCommitDate=
19
+
SettingKey[Option[String]]("git-head-commit-date", "The commit date for the top commit of this project in ISO-8601 format.")
19
20
valgitDescribedVersion=SettingKey[Option[String]]("git-described-version", "Version as returned by `git describe --tags`.")
20
21
valgitUncommittedChanges=SettingKey[Boolean]("git-uncommitted-changes", "Whether there are uncommitted changes.")
21
22
@@ -28,12 +29,15 @@ object SbtGit {
28
29
valgitTagToVersionNumber=SettingKey[String=>Option[String]]("git-tag-to-version-number", "Converts a git tag string to a version number.")
29
30
30
31
// Component version strings. We use these when determining the actual version.
31
-
valformattedShaVersion= settingKey[Option[String]]("Completely formatted version string which will use the git SHA. Override this to change how the SHA version is formatted.")
"Completely formatted version string which will use the git SHA. Override this to change how the SHA version is formatted."
34
+
)
32
35
valformattedDateVersion= settingKey[String]("Completely formatted version string which does not rely on git. Used as a fallback.")
33
36
34
37
// Helper suffix/prefix information for generated default version strings.
35
38
valbaseVersion=SettingKey[String]("base-version", "The base version number which we will append the git version to.")
36
-
valversionProperty=SettingKey[String]("version-property", "The system property that can be used to override the version number. Defaults to `project.version`.")
39
+
valversionProperty=
40
+
SettingKey[String]("version-property", "The system property that can be used to override the version number. Defaults to `project.version`.")
37
41
valuncommittedSignifier=SettingKey[Option[String]]("uncommitted-signifier", "Optional additional signifier to signify uncommitted changes")
0 commit comments