/// List all tags and the commit ID of that tag.
List all tags and the commit ID of that tag.
List all tags and the commit ID of that tag .
pub fn list_tags_with_commit_id(&self) -> Result<Vec<NameWithId>, Error> {
        let mut result = Vec::new();
        self.repo.tag_foreach(|oid, bytes| {
            if let Ok(mut name) = std::str::from_utf8(bytes) {
                if let Some(index) = name.rfind('/') {
                    name = &name[index + 1..];
                }
                result.push(NameWithId {
                    commit_id: oid.to_string(),
                    name: name.to_owned(),
                });
            }
            true
        })?;
        Ok(result)
    }
pub fn list_tags_with_commit_id ( & self ) -> Result < Vec < NameWithId > , Error > { let mut result = Vec :: new ( ) ; self . repo . tag_foreach ( | oid , bytes | { if let Ok ( mut name ) = std :: str :: from_utf8 ( bytes ) { if let Some ( index ) = name . rfind ( '/' ) { name = & name [ index + 1 .. ] ; } result . push ( NameWithId { commit_id : oid . to_string ( ) , name : name . to_owned ( ) , } ) ; } true } ) ? ; Ok ( result ) }
List all tags and the commit ID of that tag.
List all tags and the commit ID of that tag .
&self