JGit

com.github.sbt.git.JGit
See theJGit companion object
final class JGit(val repo: Repository) extends GitReadonlyInterface

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def branch: String

The currently checked out branch.

The currently checked out branch.

Attributes

override def branches: Seq[String]

The local branches

The local branches

Attributes

Definition Classes
def checkoutBranch(branch: String): Unit
def create(): Unit
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

override 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

Definition Classes
override def describedVersion(patterns: Seq[String]): Option[String]

Attributes

Definition Classes
override 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

Definition Classes
def headCommit: Option[ObjectId]
override 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

Definition Classes
override def headCommitMessage: Option[String]

The message of current commit *

The message of current commit *

Attributes

Definition Classes
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

override def remoteBranches: Seq[String]

The remote branches

The remote branches

Attributes

Definition Classes
override 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

Definition Classes
def tagHash(tag: Ref): String
def tags: Seq[Ref]

Concrete fields

val porcelain: Git
val repo: Repository