[][src]Struct lib::git::GitRepo

pub struct GitRepo { /* fields omitted */ }

Methods

impl GitRepo[src]

pub fn new(repo_path: impl AsRef<Path>) -> ResultDynError<GitRepo>[src]

pub fn upsert(repo_path: impl AsRef<Path>) -> ResultDynError<GitRepo>[src]

impl GitRepo[src]

pub fn find_commit_by_id(&self, hash: &str) -> ResultDynError<Commit>[src]

pub fn commit_file(
    &self,
    filepath: impl AsRef<Path>,
    message: &str
) -> ResultDynError<()>
[src]

pub fn commit_iterator(&self) -> ResultDynError<CommitIterator>[src]

pub fn last_commit_hash(&self) -> ResultDynError<String>[src]

pub fn get_file_content_at_commit(
    &self,
    filepath: impl AsRef<Path>,
    hash: &str
) -> ResultDynError<Vec<u8>>
[src]

Auto Trait Implementations

impl RefUnwindSafe for GitRepo

impl Send for GitRepo

impl !Sync for GitRepo

impl Unpin for GitRepo

impl UnwindSafe for GitRepo

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.