Struct git_revision::describe::Outcome
source · pub struct Outcome<'name> {
pub name: Option<Cow<'name, BStr>>,
pub id: ObjectId,
pub depth: u32,
pub name_by_oid: HashMap<ObjectId, Cow<'name, BStr>>,
pub commits_seen: u32,
}Expand description
The positive result produced by describe().
Fields§
§name: Option<Cow<'name, BStr>>The name of the tag or branch that is closest to the commit id.
If None, no name was found but it was requested to provide the id itself as fallback.
id: ObjectIdThe input commit object id that we describe.
depth: u32The number of commits that are between the tag or branch with name and id.
These commits are all in the future of the named tag or branch.
name_by_oid: HashMap<ObjectId, Cow<'name, BStr>>The mapping between object ids and their names initially provided by the describe call.
commits_seen: u32The amount of commits we traversed.