Struct git_snapshot::Repo
source · [−]pub struct Repo { /* private fields */ }
Implementations
sourceimpl Repo
impl Repo
pub fn new(repo: Repository) -> Self
pub fn from_path(path: impl AsRef<Path>) -> Result<Self, Error>
pub fn git_repo(&self) -> &Repository
pub fn name(&self) -> &str
pub fn snapshot_branch(config: &Config, current_branch: &str) -> String
pub fn snapshot(&self) -> Result<(), Error>
pub fn current_branch(&self) -> Result<String, Error>
pub fn is_ignored(&self, path: &Path) -> Result<bool, Error>
Auto Trait Implementations
impl RefUnwindSafe for Repo
impl Send for Repo
impl !Sync for Repo
impl Unpin for Repo
impl UnwindSafe for Repo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more