GitReadonlyInterface

com.github.sbt.git.GitReadonlyInterface

The read-only interface to a git repository, used to define settings.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def branch: String

The currently checked out branch.

The currently checked out branch.

Attributes

def branches: Seq[String]

The local branches

The local branches

Attributes

def currentTags: Seq[String]

The current tags associated with the local repository (at its HEAD).

The current tags associated with the local repository (at its HEAD).

Attributes

def describedVersion: Option[String]

Version of the software as returned by git describe --tags. Any patterns provided are used as per --match

Version of the software as returned by git describe --tags. Any patterns provided are used as per --match

Attributes

def hasUncommittedChanges: Boolean

Whether there are uncommitted changes (i.e. whether any tracked file has changed)

Whether there are uncommitted changes (i.e. whether any tracked file has changed)

Attributes

def headCommitDate: Option[String]

The current commit date of the local repository in ISO-8601 format, or none.

The current commit date of the local repository in ISO-8601 format, or none.

Attributes

def headCommitMessage: Option[String]

The message of current commit *

The message of current commit *

Attributes

def headCommitSha: Option[String]

The current commit SHA of the local repository, or none.

The current commit SHA of the local repository, or none.

Attributes

def remoteBranches: Seq[String]

The remote branches

The remote branches

Attributes

def remoteOrigin: String

The remote origin as returned by git ls-remote --get-url origin.

The remote origin as returned by git ls-remote --get-url origin.

Attributes

Concrete methods

def describedVersion(patterns: Seq[String]): Option[String]