pub struct Outpost { /* private fields */ }Implementations§
Source§impl Outpost
impl Outpost
pub fn discover(start: &Path) -> OutpostResult<Self>
pub fn discover_with( start: &Path, env: &BTreeMap<OsString, OsString>, ) -> OutpostResult<Self>
pub fn at(path: impl Into<PathBuf>) -> OutpostResult<Self>
pub fn at_with( path: impl Into<PathBuf>, env: &BTreeMap<OsString, OsString>, ) -> OutpostResult<Self>
pub fn work_tree(&self) -> &Path
pub fn git_dir(&self) -> &Path
pub fn metadata(&self) -> &Metadata
pub fn source_repo(&self) -> OutpostResult<SourceRepo>
pub fn current_branch(&self) -> OutpostResult<BranchName>
pub fn is_dirty(&self) -> OutpostResult<bool>
pub fn ahead_behind_source(&self) -> OutpostResult<AheadBehind>
pub fn unpushed_commits(&self, source: &SourceRepo) -> OutpostResult<u32>
pub fn upstream_tracking(&self) -> OutpostResult<Option<UpstreamRef>>
Auto Trait Implementations§
impl Freeze for Outpost
impl RefUnwindSafe for Outpost
impl Send for Outpost
impl Sync for Outpost
impl Unpin for Outpost
impl UnsafeUnpin for Outpost
impl UnwindSafe for Outpost
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