JGitRunner

com.github.sbt.git.JGitRunner
object JGitRunner extends GitRunner

A mechanism to run GIT using the pure java JGit implementation.

Attributes

Graph
Supertypes
trait GitRunner
class Object
trait Matchable
class Any
Self type
JGitRunner.type

Members list

Value members

Concrete methods

override def apply(args: String*)(cwd: File, log: Logger): String

Akin to running 'git {args}' with a given working directory cwd and logger. This will always return the resulting output string of the process.

Akin to running 'git {args}' with a given working directory cwd and logger. This will always return the resulting output string of the process.

Attributes

Definition Classes
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any

Inherited methods

def commitAndPush(msg: String, tag: Option[String])(repo: File, log: Logger): Unit

Commits all local changes and pushes the new commit to a remote repository.

Commits all local changes and pushes the new commit to a remote repository.

Attributes

Inherited from:
GitRunner
def pull(cwd: File, log: Logger): String

Pulls remote changes into the local branch.

Pulls remote changes into the local branch.

Attributes

Inherited from:
GitRunner
def push(cwd: File, log: Logger): String

Pushes local commits to the remote branch.

Pushes local commits to the remote branch.

Attributes

Inherited from:
GitRunner
def updated(remote: String, branch: Option[String], cwd: File, log: Logger): Unit

Updates the cwd from a remote branch. If the local git repo doesn't exist, will clone it into existence.

Updates the cwd from a remote branch. If the local git repo doesn't exist, will clone it into existence.

Attributes

Inherited from:
GitRunner