pub struct Git;Expand description
The git implementation of Vcs.
Stateless by design: everything it needs is the registry and the workspaces under the one state root, so two processes driving it see the same host.
Trait Implementations§
impl Copy for Git
impl Eq for Git
impl StructuralPartialEq for Git
Source§impl Vcs for Git
impl Vcs for Git
Source§fn resolve_identity(&self, origin_or_path: &str) -> Result<Identity>
fn resolve_identity(&self, origin_or_path: &str) -> Result<Identity>
Resolve an origin URL or a checkout path to the repository identity it
belongs to.
Source§fn open_session(&self, req: SessionRequest) -> Result<Session>
fn open_session(&self, req: SessionRequest) -> Result<Session>
Open a session: a clone of an execution checkout and an isolated worktree cut
from it — a warm pool slot where the host keeps one, else cut for this run —
held under an occupancy lease.
Source§fn adopt_session(&self, token: SessionToken) -> Result<Session>
fn adopt_session(&self, token: SessionToken) -> Result<Session>
Re-attach to a session that already exists, claiming its free occupancy
lease.
Source§fn session(&self, token: &SessionToken) -> Result<SessionRecord>
fn session(&self, token: &SessionToken) -> Result<SessionRecord>
What this implementation recorded about a session it opened.
Source§fn close_session(&self, token: &SessionToken) -> Result<Session>
fn close_session(&self, token: &SessionToken) -> Result<Session>
Release a session’s worktree and its lease, keeping its branch.
Source§fn preserve(
&self,
s: &Session,
provenance: Provenance,
) -> Result<PreservedBranch>
fn preserve( &self, s: &Session, provenance: Provenance, ) -> Result<PreservedBranch>
Commit the session’s work onto a branch that outlives it, recording why.
Source§fn publish(
&self,
token: &SessionToken,
request: &PublishRequest,
hosting: &dyn Hosting,
) -> Result<Publication>
fn publish( &self, token: &SessionToken, request: &PublishRequest, hosting: &dyn Hosting, ) -> Result<Publication>
Verify a session’s branch and land it under its repository’s policy. Read more
Source§fn publish_with_cancellation(
&self,
token: &SessionToken,
request: &PublishRequest,
hosting: &dyn Hosting,
cancellation: &dyn PublicationCancellation,
) -> Result<Publication>
fn publish_with_cancellation( &self, token: &SessionToken, request: &PublishRequest, hosting: &dyn Hosting, cancellation: &dyn PublicationCancellation, ) -> Result<Publication>
publish, asking cancellation while it waits and ending as
FailureKind::Cancelled once it says so. Read moreSource§fn recoverable(&self, scope: Scope) -> Result<Vec<Recoverable>>
fn recoverable(&self, scope: Scope) -> Result<Vec<Recoverable>>
Every preserved-but-unpublished branch in scope, and what would land each. Read more
Source§fn preserved(&self, scope: Scope) -> Result<Vec<Recoverable>>
fn preserved(&self, scope: Scope) -> Result<Vec<Recoverable>>
Every preserved branch in scope, whatever became of its work, each saying
what did become of it and what says so. Read more
Source§fn recoverable_matching(
&self,
scope: Scope,
selection: &Selection,
) -> Result<Vec<Recoverable>>
fn recoverable_matching( &self, scope: Scope, selection: &Selection, ) -> Result<Vec<Recoverable>>
Source§fn preserved_matching(
&self,
scope: Scope,
selection: &Selection,
) -> Result<Vec<Recoverable>>
fn preserved_matching( &self, scope: Scope, selection: &Selection, ) -> Result<Vec<Recoverable>>
preserved, narrowed the same way and for the same reason.
Selection::detail changes presentation cost only: both detail modes keep
the same rows, tip, landing evidence, holds, retirement and recovery command.Auto Trait Implementations§
impl Freeze for Git
impl RefUnwindSafe for Git
impl Send for Git
impl Sync for Git
impl Unpin for Git
impl UnsafeUnpin for Git
impl UnwindSafe for Git
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.