Namespaces
Fake
Fake.Git
Fake.MSBuild
Fake.SQL
FakeLib
Types in Fake.Git
Branches
CommandHelper
CommitMessage
FileStatus
Information
Merge
MergeType
Rebase
Repository
Reset
SanityChecks
SHA1
Staging
Stash
Submodule
Tags
Type
Branches
Namespace
Fake.Git
Methods
checkout
checkoutBranch
checkoutNewBranch
checkoutTracked
createBranch
deleteBranch
deleteTag
findMergeBase
getAllBranches
getLocalBranches
getRemoteBranches
getSHA1
pull
push
revisionsBetween
tag
Public static methods
void
checkout
(
string
repositoryDir,
bool
create,
string
branch)
Checks a branch out
void
checkoutBranch
(
string
repositoryDir,
string
branch)
Performs a checkout of the given branch to the working copy
void
checkoutNewBranch
(
string
repositoryDir,
string
baseBranch,
string
branch)
Creates a new branch based on the given baseBranch and checks it out to the working copy
Parameters
string
repositoryDir
The repository directory.
string
baseBranch
The base branch.
string
branch
The new branch.
void
checkoutTracked
(
string
repositoryDir,
string
trackBranch,
string
branch)
Checks a branch out
void
createBranch
(
string
repositoryDir,
string
newBranchName,
string
fromCommit)
Creates a new branch from the given commit
void
deleteBranch
(
string
repositoryDir,
bool
force,
string
branch)
Deletes the given branch
void
deleteTag
(
string
repositoryDir,
string
tag)
Deletes the given tag
string
findMergeBase
(
string
repositoryDir,
string
branch1,
string
branch2)
Returns the SHA1 of the merge base of the two given commits
FSharpList<string>
getAllBranches
(
string
repositoryDir)
Gets all local and remote branches
FSharpList<string>
getLocalBranches
(
string
repositoryDir)
Gets all local branches
FSharpList<string>
getRemoteBranches
(
string
repositoryDir)
Gets all remote branches
string
getSHA1
(
string
repositoryDir,
string
s)
Returns the SHA1 of the given head
void
pull
(
string
repositoryDir,
string
remote,
string
branch)
Pull
void
push
(
string
repositoryDir)
Push all
int
revisionsBetween
(
string
repositoryDir,
string
branch1,
string
branch2)
Returns the number of revisions between the two given commits
void
tag
(
string
repositoryDir,
string
tag)
Tags the current branch