Enum git_trim::ClassifiedBranch
source · pub enum ClassifiedBranch {
MergedLocal(LocalBranch),
Stray(LocalBranch),
MergedRemoteTracking(RemoteTrackingBranch),
DivergedRemoteTracking {
local: LocalBranch,
upstream: RemoteTrackingBranch,
},
MergedDirectFetch {
local: LocalBranch,
remote: RemoteBranch,
},
DivergedDirectFetch {
local: LocalBranch,
remote: RemoteBranch,
},
MergedNonTrackingLocal(LocalBranch),
MergedNonUpstreamRemoteTracking(RemoteTrackingBranch),
}
Variants§
MergedLocal(LocalBranch)
Stray(LocalBranch)
MergedRemoteTracking(RemoteTrackingBranch)
DivergedRemoteTracking
MergedDirectFetch
DivergedDirectFetch
MergedNonTrackingLocal(LocalBranch)
MergedNonUpstreamRemoteTracking(RemoteTrackingBranch)
Implementations§
source§impl ClassifiedBranch
impl ClassifiedBranch
pub fn local(&self) -> Option<&LocalBranch>
pub fn upstream(&self) -> Option<&RemoteTrackingBranch>
pub fn remote(&self, repo: &Repository) -> Result<Option<RemoteBranch>>
pub fn message_local(&self) -> String
pub fn message_remote(&self) -> String
Trait Implementations§
source§impl Clone for ClassifiedBranch
impl Clone for ClassifiedBranch
source§fn clone(&self) -> ClassifiedBranch
fn clone(&self) -> ClassifiedBranch
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ClassifiedBranch
impl Debug for ClassifiedBranch
source§impl Hash for ClassifiedBranch
impl Hash for ClassifiedBranch
source§impl PartialEq<ClassifiedBranch> for ClassifiedBranch
impl PartialEq<ClassifiedBranch> for ClassifiedBranch
source§fn eq(&self, other: &ClassifiedBranch) -> bool
fn eq(&self, other: &ClassifiedBranch) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.