pub fn pretty_ref(&self) -> Option<PrettyRef<'_>> {
        match *self {
            GitReference::Branch(ref s) if *s == DEFAULT_BRANCH => None,
            _ => Some(PrettyRef { inner: self }),
        }
    }
/// Returns a `Display`able view of this git reference, or None if using
/// the head of the default branch
Returns a `Display`able view of this git reference, or None if using
the head of the default branch
Returns a ` Display ` able view of this git reference or None if using the head of the default branch
pub fn pretty_ref(&self) -> Option<PrettyRef<'_>> {
        match *self {
            GitReference::Branch(ref s) if *s == DEFAULT_BRANCH => None,
            _ => Some(PrettyRef { inner: self }),
        }
    }
pub fn pretty_ref ( & self ) -> Option < PrettyRef < ' _ > > { match * self { GitReference :: Branch ( ref s ) if * s == DEFAULT_BRANCH => None , _ => Some ( PrettyRef { inner : self } ) , } }
Returns a `Display`able view of this git reference, or None if using
the head of the default branch
Returns a ` Display ` able view of this git reference or None if using the head of the default branch
&self
&self