pub struct GitRepository { /* private fields */ }Implementations§
Source§impl GitRepository
impl GitRepository
pub fn open<P: AsRef<Path>>(path: P) -> Result<Self>
pub fn get_commit(&self, hash: &str) -> Result<CommitMetadata>
pub fn random_commit(&self) -> Result<CommitMetadata>
pub fn next_asc_commit(&self) -> Result<CommitMetadata>
pub fn next_desc_commit(&self) -> Result<CommitMetadata>
pub fn reset_index(&self)
pub fn set_before_filter(&mut self, before: Option<DateTime<Utc>>)
pub fn set_after_filter(&mut self, after: Option<DateTime<Utc>>)
pub fn set_commit_range(&self, range: &str) -> Result<()>
pub fn next_range_commit_asc(&self) -> Result<CommitMetadata>
pub fn next_range_commit_desc(&self) -> Result<CommitMetadata>
pub fn random_range_commit(&self) -> Result<CommitMetadata>
Sourcepub fn get_working_tree_diff(&self, mode: DiffMode) -> Result<CommitMetadata>
pub fn get_working_tree_diff(&self, mode: DiffMode) -> Result<CommitMetadata>
Get working tree diff as CommitMetadata for animation
DiffMode::Staged - Only staged changes (index vs HEAD) DiffMode::Unstaged - Only unstaged changes (workdir vs index)
Auto Trait Implementations§
impl !Freeze for GitRepository
impl !RefUnwindSafe for GitRepository
impl Send for GitRepository
impl !Sync for GitRepository
impl Unpin for GitRepository
impl UnwindSafe for GitRepository
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more