GitRunner

com.github.sbt.git.GitRunner
trait GitRunner

An interface to run git commands.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

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

Concrete 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

def pull(cwd: File, log: Logger): String

Pulls remote changes into the local branch.

Pulls remote changes into the local branch.

Attributes

def push(cwd: File, log: Logger): String

Pushes local commits to the remote branch.

Pushes local commits to the remote branch.

Attributes

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