[−][src]Struct supergit::files::FileTree
A git directory tree walker abstraction
This type is meant to be used ephemerally, and internally uses the
libgit2 Tree
abstraction to walk directory trees lazily to
resolve paths to TreeEntry
's.
Note: this type may be removed in the future. For a more
high-level (and stable) API, check
Explorer
Implementations
impl FileTree
[src]
pub fn base_history(&self, iter: BranchIter, path: &str) -> Option<Vec<Commit>>
[src]
Get the history of a path with a branch iterator
This function is computationally light, by not checking for renames between commits. This is done by resolving a path to a tree reference, and comparing references at the same position between two commits.
pub fn enumerate(&self, path: &str) -> Option<Vec<TreeEntry>>
[src]
Enumerate a non-leaf tree entry
pub fn resolve(&self, path: &str) -> Option<TreeEntry>
[src]
Resolve a path inside this file tree
Will return None
if there is no tree for the selected
commit, or the file inside the tree does not exist.
Auto Trait Implementations
impl RefUnwindSafe for FileTree
[src]
impl !Send for FileTree
[src]
impl !Sync for FileTree
[src]
impl Unpin for FileTree
[src]
impl UnwindSafe for FileTree
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,