pub struct GitFileHistory { /* private fields */ }
Implementations§
Source§impl GitFileHistory
impl GitFileHistory
pub fn new(log: &mut GitLog) -> Result<GitFileHistory, Error>
Sourcepub fn is_repo_for(&self, file: &Path) -> Result<bool, Error>
pub fn is_repo_for(&self, file: &Path) -> Result<bool, Error>
true if this repo is valid for this file - file must exist (as we canonicalize it)
Sourcepub fn history_for(
&self,
file: &Path,
) -> Result<Option<&Vec<FileHistoryEntry>>, Error>
pub fn history_for( &self, file: &Path, ) -> Result<Option<&Vec<FileHistoryEntry>>, Error>
get git history for this file - file must exist (as we canonicalize it)
pub fn last_commit(&self) -> u64
Trait Implementations§
Source§impl Debug for GitFileHistory
impl Debug for GitFileHistory
Auto Trait Implementations§
impl Freeze for GitFileHistory
impl RefUnwindSafe for GitFileHistory
impl Send for GitFileHistory
impl Sync for GitFileHistory
impl Unpin for GitFileHistory
impl UnwindSafe for GitFileHistory
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