SbtGit

com.github.sbt.git.SbtGit
object SbtGit

This plugin has all the basic 'git' functionality for other plugins.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
SbtGit.type

Members list

Type members

Classlikes

object GitCommand

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
GitCommand.type
object GitKeys

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
GitKeys.type
object git

A holder of keys for simple config.

A holder of keys for simple config.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
git.type

Value members

Concrete methods

def buildSettings: Seq[Setting[_ >: Boolean & ReadableGit & Option[String] & (String => Option[String]) & Seq[String] & String & Task[GitRunner] & Option[ScmInfo] <: Boolean | ReadableGit | Option[String] | (String => Option[String]) | Seq[String] | String | Task[GitRunner] | Option[ScmInfo]]]
def showCurrentGitBranch: Setting[_]

Adapts the project prompt to show the current project name and the current git branch.

Adapts the project prompt to show the current project name and the current git branch.

Attributes

def useJGit: Setting[_]

A Predefined setting to use JGit runner for git.

A Predefined setting to use JGit runner for git.

Attributes

def useReadableConsoleGit: Setting[_]

Setting to use console git for readable ops, to allow working with git worktrees

Setting to use console git for readable ops, to allow working with git worktrees

Attributes

def versionProjectWithGit: Seq[Setting[_]]
def versionWithGit: Seq[Setting[_]]

Uses git to control versioning.

Uses git to control versioning.

Versioning runs through the following:

  1. Looks at version-property settings, and checks the sys.props to see if this has a value.
  2. Looks at the project tags. The first to match the gitTagToVersionNumber setting is used to assign the version.
  3. if we have a head commit, we attach this to the base version setting " . "
  4. We append the current timestamp to the base version: " . "

Attributes

Concrete fields

val projectSettings: Seq[Setting[_ >: Seq[Command] & (String => Option[String]) & Seq[String] & Option[String] <: Seq[Command] | (String => Option[String]) | Seq[String] | Option[String]]]