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.