pub struct GitBridge { /* private fields */ }Implementations§
Source§impl GitBridge
impl GitBridge
pub fn open(path: &Path) -> Result<Self, GitError>
pub fn repo_root(&self) -> &Path
pub fn get_head_sha(&self) -> Result<String, GitError>
Sourcepub fn detect_and_get_files(
&self,
) -> Result<(DiffScope, Vec<FileChange>), GitError>
pub fn detect_and_get_files( &self, ) -> Result<(DiffScope, Vec<FileChange>), GitError>
Combined detect scope + get files in one call (fast path)
Sourcepub fn get_changed_files(
&self,
scope: &DiffScope,
) -> Result<Vec<FileChange>, GitError>
pub fn get_changed_files( &self, scope: &DiffScope, ) -> Result<Vec<FileChange>, GitError>
Get changed files for a specific scope
pub fn get_log(&self, limit: usize) -> Result<Vec<CommitInfo>, GitError>
Auto Trait Implementations§
impl Freeze for GitBridge
impl RefUnwindSafe for GitBridge
impl Send for GitBridge
impl !Sync for GitBridge
impl Unpin for GitBridge
impl UnsafeUnpin for GitBridge
impl UnwindSafe for GitBridge
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