pub struct KitRepo {
pub inner: Repository,
}Fields§
§inner: RepositoryImplementations§
Source§impl KitRepo
impl KitRepo
pub fn get_entire_repo_contribution(&self) -> Result<Contribution, Error>
pub fn get_lifetime_contributions( &self, email: String, ) -> Result<Contribution, Error>
Source§impl<'repo> KitRepo
impl<'repo> KitRepo
pub fn open<P: AsRef<Path>>(path: P) -> Result<KitRepo, Error>
pub fn change_branch(&self, branch_name: &str) -> Result<(), Error>
pub fn list_branch(&self) -> Result<(), Error>
pub fn get_all_commits<'a>(&'a self) -> Result<Vec<KitCommit>, Error>
pub fn iter_commits(&self) -> Result<impl Iterator<Item = KitCommit>, Error>
pub fn get_diff( &self, parent: Option<&Commit<'_>>, current: Option<&Commit<'_>>, opts: Option<&mut DiffOptions>, ) -> Result<Diff<'_>, Error>
pub fn get_parent_diff( &self, commit: &Commit<'repo>, opts: Option<&mut DiffOptions>, ) -> Result<Diff<'_>, Error>
pub fn iter_diff_history<'a>( &'a self, ) -> Result<impl Iterator<Item = (KitCommit, Diff<'a>)> + 'a, Error>
pub fn current_branch(&self) -> Result<String, Error>
pub fn get_status(&self) -> KitStatus
pub fn is_dirty(&self) -> Result<bool, Error>
Auto Trait Implementations§
impl !Sync for KitRepo
impl Freeze for KitRepo
impl RefUnwindSafe for KitRepo
impl Send for KitRepo
impl Unpin for KitRepo
impl UnsafeUnpin for KitRepo
impl UnwindSafe for KitRepo
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