Struct git2::Branch [−][src]
pub struct Branch<'repo> { /* fields omitted */ }
Expand description
A structure to represent a git branch
A branch is currently just a wrapper to an underlying Reference
. The
reference can be accessed through the get
and into_reference
methods.
Implementations
Take ownership of the underlying reference.
Move/rename an existing local branch reference.
Return the name of the given local or remote branch.
May return Ok(None)
if the name is not valid utf-8.
Return the name of the given local or remote branch.
Return the reference supporting the remote tracking branch, given a local branch reference.