Struct git_repository::easy::Reference [−][src]
pub struct Reference<'r, A> {
pub inner: Reference,
// some fields omitted
}
Expand description
A reference that points to an object or reference, with access to its source repository.
Note that these are snapshots and won’t recognize if they are stale.
Fields
inner: Reference
The actual reference data
Implementations
Access
Returns the attached id we point to, or panic if this is a symbolic ref.
Follow all symbolic targets this reference might point to and peel the underlying object to the end of the chain, and return it.
This is useful to learn where this reference is ulitmately pointing to.
Similar to peel_to_id_in_place()
, but consumes this instance.