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,
}
Available on crate feature
describe
only.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: ObjectId
The input commit object id that we describe.
depth: u32
The 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: u32
The amount of commits we traversed.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'name> Freeze for Outcome<'name>
impl<'name> RefUnwindSafe for Outcome<'name>
impl<'name> Send for Outcome<'name>
impl<'name> Sync for Outcome<'name>
impl<'name> Unpin for Outcome<'name>
impl<'name> UnwindSafe for Outcome<'name>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more