Skip to content

Commit

Permalink
Merge branch 'main' into sbt-version-bumping
Browse files Browse the repository at this point in the history
  • Loading branch information
SethTisue authored Sep 7, 2024
2 parents 43083f8 + f079e4b commit d749681
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 0 additions & 1 deletion .java-version

This file was deleted.

1 change: 0 additions & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
sbt.version=1.10.1

2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
libraryDependencies += "org.scala-sbt" %% "scripted-plugin" % sbtVersion.value

addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.10")
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.6.1")
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ class ConsoleGitReadableOnly(git: GitRunner, cwd: File, log: Logger) extends Git

def describedVersion: Option[String] = Try(git("describe", "--tags")(cwd, log).split("\\s+").headOption).toOption.flatten

override def describedVersion(patterns: Seq[String]): Option[String] =
patterns.headOption.fold(describedVersion)(pat =>
Try(git("describe", "--tags", "--match", pat)(cwd, log).split("\\s+").headOption).toOption.flatten
)

def hasUncommittedChanges: Boolean = Try(!git("status", "-s")(cwd, log).trim.isEmpty).getOrElse(true)

def branches: Seq[String] = Try(git("branch", "--list")(cwd, log).split("\\s+").toSeq).getOrElse(Seq())
Expand Down

0 comments on commit d749681

Please sign in to comment.