Struct git_ref::Reference [−][src]
Expand description
A fully owned backend agnostic reference
Fields
name: FullName
The path to uniquely identify this ref within its store.
target: Target
The target of the reference, either a symbolic reference by full name or a possibly intermediate object by its id.
peeled: Option<ObjectId>
The fully peeled object to which this reference ultimately points to. Only guaranteed to be set after peel_to_id_in_place()
was called.
Implementations
Return the full validated name of the reference, with the given namespace stripped if possible.
If the reference name wasn’t prefixed with namespace
, None
is returned instead.
Strip the given namespace from our name as well as the name, but not the reference we point to.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
A step towards obtaining forward or reverse iterators on reference logs.
For details, see Reference::log_exists().
For details, see Reference::peel_to_id_in_place().
Auto Trait Implementations
impl RefUnwindSafe for Reference
impl UnwindSafe for Reference
Blanket Implementations
Mutably borrows from an owned value. Read more