Branches
Contains helper functions which allow to deal with git branches.
Functions and values
Function or value | Description |
checkout repositoryDir create branch
Signature: repositoryDir:string -> create:bool -> branch:string -> unit
|
Performs a checkout of the given branch to the working copy. Parameters
|
checkoutBranch repositoryDir branch
Signature: repositoryDir:string -> branch:string -> unit
|
Performs a checkout of the given branch to the working copy. Parameters
|
checkoutNewBranch(...)
Signature: repositoryDir:string -> baseBranch:string -> branch:string -> unit
|
Creates a new branch based on the given baseBranch and checks it out to the working copy. Parameters
|
checkoutTracked(...)
Signature: repositoryDir:string -> trackBranch:string -> branch:string -> unit
|
Performs a checkout of the given branch with an additional tracking branch. Parameters
|
createBranch(...)
Signature: repositoryDir:string -> newBranchName:string -> commit:string -> unit
|
Creates a new branch from the given commit. Parameters
|
deleteBranch repositoryDir force branch
Signature: repositoryDir:string -> force:bool -> branch:string -> unit
|
Deletes the given branch. Parameters
|
deleteTag repositoryDir tag
Signature: repositoryDir:string -> tag:string -> unit
|
Deletes the given tag. Parameters
|
findMergeBase(...)
Signature: repositoryDir:string -> commit1:string -> commit2:string -> string
|
Returns the SHA1 of the merge base of the two given commits from the given repository. Parameters
|
getAllBranches(repositoryDir)
Signature: repositoryDir:string -> string list
|
Gets all local and remote branches from the given repository. |
getLocalBranches(repositoryDir)
Signature: repositoryDir:string -> string list
|
Gets all local branches from the given repository. |
getRemoteBranches(repositoryDir)
Signature: repositoryDir:string -> string list
|
Gets all remote branches from the given repository. |
getSHA1 repositoryDir commit
Signature: repositoryDir:string -> commit:string -> string
|
Returns the SHA1 of the given commit from the given repository. Parameters
|
pull repositoryDir remote branch
Signature: repositoryDir:string -> remote:string -> branch:string -> unit
|
Pulls a given branch from the given remote. Parameters
|
push(repositoryDir)
Signature: repositoryDir:string -> unit
|
Pushes all branches to the default remote. Parameters
|
pushBranch repositoryDir remote branch
Signature: repositoryDir:string -> remote:string -> branch:string -> unit
|
Pushes the given branch to the given remote. Parameters
|
pushTag repositoryDir remote tag
Signature: repositoryDir:string -> remote:string -> tag:string -> unit
|
Pushes the given tag to the given remote. Parameters
|
revisionsBetween(...)
Signature: repositoryDir:string -> commit1:string -> commit2:string -> int
|
Returns the number of revisions between the two given commits. Parameters
|
tag repositoryDir tag
Signature: repositoryDir:string -> tag:string -> unit
|
Tags the current branch. Parameters
|