pub struct GitRepository { /* private fields */ }Implementations§
Source§impl GitRepository
impl GitRepository
pub fn new(root: impl Into<PathBuf>, runner: Arc<dyn CommandRunner>) -> Self
pub fn snapshot(&self, expected_branch: &str) -> Result<RepositorySnapshot>
pub fn root(&self) -> &Path
pub fn origin_url(&self) -> Result<String>
pub fn ref_snapshot(&self) -> Result<GitRefSnapshot>
pub fn ensure_refs_unchanged( &self, before: &GitRefSnapshot, phase: &str, ) -> Result<()>
pub fn seal( &self, candidate: &ReleaseCandidate, expected_branch: &str, ) -> Result<SealedRelease>
pub fn revalidate_prepared( &self, candidate: &ReleaseCandidate, expected_branch: &str, ) -> Result<()>
Auto Trait Implementations§
impl !RefUnwindSafe for GitRepository
impl !UnwindSafe for GitRepository
impl Freeze for GitRepository
impl Send for GitRepository
impl Sync for GitRepository
impl Unpin for GitRepository
impl UnsafeUnpin 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