pub struct GitCompatState {
pub version: u32,
pub revision: u64,
pub current_branch: String,
pub branches: BTreeMap<String, GitBranch>,
pub commits: BTreeMap<GitCommitId, GitCommit>,
pub external_parents: BTreeSet<GitCommitId>,
pub tags: BTreeMap<String, GitCommitId>,
pub reflog: Vec<Option<GitCommitId>>,
pub stash: Vec<GitTreeRef>,
pub legacy_tracked_paths: BTreeSet<String>,
pub pending: Option<GitPendingTransition>,
pub bisect: Option<GitBisectState>,
}Expand description
Versioned private compatibility state.
Fields§
§version: u32Serialization contract version.
revision: u64Monotonic optimistic-concurrency revision.
current_branch: StringCurrently selected compatibility branch.
branches: BTreeMap<String, GitBranch>Branch catalog.
commits: BTreeMap<GitCommitId, GitCommit>Explicit commit records.
external_parents: BTreeSet<GitCommitId>Cross-repository parents introduced by direct child publication. These identities are explicit graph boundaries, never silently missing local records.
Lightweight tags.
reflog: Vec<Option<GitCommitId>>Most-recent-first prior branch heads.
stash: Vec<GitTreeRef>Stashed exact generations, newest last.
legacy_tracked_paths: BTreeSet<String>Version-five migration source. New state keeps tracking information on each branch and never serializes this empty compatibility field.
pending: Option<GitPendingTransition>Durable sequencer transition prepared before filesystem side effects.
bisect: Option<GitBisectState>Active first-parent bisection, if any.
Implementations§
Source§impl GitCompatState
impl GitCompatState
Sourcepub fn new(branch: impl Into<String>, workspace_id: WorkspaceId) -> Self
pub fn new(branch: impl Into<String>, workspace_id: WorkspaceId) -> Self
Creates an unborn branch for one SDK workspace.
Trait Implementations§
Source§impl Clone for GitCompatState
impl Clone for GitCompatState
Source§impl Debug for GitCompatState
impl Debug for GitCompatState
Source§impl<'de> Deserialize<'de> for GitCompatState
impl<'de> Deserialize<'de> for GitCompatState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for GitCompatState
Source§impl PartialEq for GitCompatState
impl PartialEq for GitCompatState
Source§impl Serialize for GitCompatState
impl Serialize for GitCompatState
impl StructuralPartialEq for GitCompatState
Auto Trait Implementations§
impl Freeze for GitCompatState
impl RefUnwindSafe for GitCompatState
impl Send for GitCompatState
impl Sync for GitCompatState
impl Unpin for GitCompatState
impl UnsafeUnpin for GitCompatState
impl UnwindSafe for GitCompatState
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request