Enum git_ref::file::Reference [−][src]
Expand description
Either a loose or packed reference, depending on where it was found.
Variants
A reference originating in a pack
Tuple Fields of Packed
0: Reference<'p>
A reference from the filesystem
Tuple Fields of Loose
0: Reference
Implementations
For details, see loose::Reference::log_exists().
For details, see crate::file::loose::Reference::peel_to_id_in_place.
For details, see crate::file::loose::Reference::follow_symbolic().
Obtain a reverse iterator over logs of this reference. See crate::file::loose::Reference::log_iter_rev() for details.
Obtain an iterator over logs of this reference. See crate::file::loose::Reference::log_iter() for details.
Transform this reference into an owned Target
Return the full validated name of the reference, which may include a namespace.
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.