Note: This API documentation is for FAKE version 4. The migration API documentation can be found here. The API documentation for the new fake 5 modules can be found here

SanityChecks

Contains helper function which can be used for sanity checks.

Functions and values

Function or valueDescription
checkIfBranchExists repositoryDir branch
Signature: repositoryDir:string -> branch:string -> unit

Checks if the given branch exists.

checkIfBranchIsAbsent(...)
Signature: repositoryDir:string -> branch:string -> unit

Checks if the given branch is absent.

checkIsLocalBranch repositoryDir branch
Signature: repositoryDir:string -> branch:string -> unit

Checks if the given branch is a local branch.

checkIsRemoteBranch repositoryDir branch
Signature: repositoryDir:string -> branch:string -> unit

Checks if the given branch is a remote branch.

checkRevisionExists(...)
Signature: repositoryDir:string -> revision1:string -> unit

Checks if the given branch exists.