Namespaces

Types in Fake.Git

Type Information

Namespace Fake.Git

Methods

Public static methods

string describe(string repositoryDir)

Gets the last git tag by calling git describe

string getBranchName(string repositoryDir)

Gets the git branch name

string getCurrentHash()

Gets the current hash of the current repository

string getCurrentSHA1(string repositoryDir)

Returns the SHA1 of the current HEAD

string getLastTag()

Gets the last git tag of the current repository by calling git describe

string getVersion(string repositoryDir)

Gets the git version

bool isAheadOf(string repositoryDir, string rev1, string rev2)

Returns true if rev1 is ahead of rev2

bool isCleanWorkingCopy(string repositoryDir)

Checks if the working copy is clean

string shortlog(string repositoryDir)

Gets the git log in one line

string showName(string repositoryDir, string sha1)

Returns a friendly name from a SHA1

void showStatus(string repositoryDir)

Shows the git status