Enum radicle_git_ext::blob::Blob
source · pub enum Blob<'a> {
Tip {
branch: Branch<'a>,
path: &'a Path,
},
Init {
branch: Branch<'a>,
path: &'a Path,
},
At {
object: Oid,
path: &'a Path,
},
}
Expand description
Conveniently read a git2::Blob
from a starting point.
Variants§
Tip
Look up the tip of the reference specified by Branch
, peel until a
tree is found, and traverse the tree along the given Path
until
the blob is found.
Init
Traverse the history from the tip of Branch
along the first parent
until a commit without parents is found. Try to get the blob in that
commit’s tree at Path
.
At
Look up object
, peel until a tree is found, and try to get at the blob
at Path
.
Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Blob<'a>
impl<'a> RefUnwindSafe for Blob<'a>
impl<'a> !Send for Blob<'a>
impl<'a> !Sync for Blob<'a>
impl<'a> Unpin for Blob<'a>
impl<'a> UnwindSafe for Blob<'a>
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