A branch is a specific type of reference, at any particular time,
a git working directory typically is said to have a branch "checked out",
meaning that commits that are created will be made "on" a branch.
This occurs by updating the branch reference to point to the new
commit. The checked out branch is indicated by the HEAD
meta-ref.
Iterator type for branches
Basic type of any Git branch
Create a new branch pointing at a target commit
Create a new branch pointing at a target commit
Delete an existing branch reference
Create an iterator which loops over the requested branches
Retrieve the next branch from the iterator
Free a branch iterator
Move/rename an existing local branch reference
Lookup a branch by its name in a repository
Get the branch name
Get the upstream of a branch
Set a branch's upstream branch
Get the upstream name of a branch
Determine if HEAD points to the given branch
Determine if any HEAD points to the current branch
Find the remote name of a remote-tracking branch
Retrieve the upstream remote of a local branch
Retrieve the upstream merge of a local branch
Determine whether a branch name is valid, meaning that (when prefixed with refs/heads/
) that it is a valid reference name, and that any additional branch name restrictions are imposed (eg, it cannot start with a -
)