Module branch

Source
Expand description

branch functions

Modules§

merge_commit
merging from upstream
merge_ff
merging from upstream
merge_rebase
merging from upstream (rebase)
rename
renaming of branches

Structs§

BranchCompare
BranchInfo
LocalBranch
RemoteBranch
UpstreamBranch

Enums§

BranchDetails

Functions§

branch_compare_upstream
checkout_branch
Switch branch to given branch_name.
checkout_commit
Detach HEAD to point to a commit then checkout HEAD, does not work if there are uncommitted changes
checkout_remote_branch
config_is_pull_rebase
returns whether the pull merge strategy is set to rebase
create_branch
creates a new branch pointing to current HEAD commit and updating HEAD to new branch
delete_branch
The user must not be on the branch for the branch to be deleted
get_branch_remote
returns remote of the upstream tracking branch for branch
get_branches_info
returns a list of BranchInfo with a simple summary on each branch local filters for local branches otherwise remote branches will be returned
validate_branch_name