/// Get the name of the current branch, or `""` if a name could not be retrieved for some reason
Get the name of the current branch, or `""` if a name could not be retrieved for some reason
Get the name of the current branch or ` " " ` if a name could not be retrieved for some reason
pub fn name(&self) -> &str {
        match self.branch.name() {
            Ok(Some(name)) => name,
            _ => "",
        }
    }
pub fn name ( & self ) -> & str { match self . branch . name ( ) { Ok ( Some ( name ) ) => name , _ => " " , } }
Get the name of the current branch, or `""` if a name could not be retrieved for some reason
Get the name of the current branch or ` " " ` if a name could not be retrieved for some reason
&self