pub struct GitOpenRequest<'a> {
pub nonce: u16,
pub flags: u16,
pub refs_latency_ms: u16,
pub status_latency_ms: u16,
pub src_pty_id: u16,
pub parent_repo_id: u16,
pub ref_prefixes: Vec<&'a str>,
pub path: &'a str,
}Expand description
A decoded C2S_GIT_OPEN.
Both context ids are plain fields with a GIT_OPEN_NO_CONTEXT
sentinel rather than flag-gated tails, so the message has one parse
shape however it is used.
Fields§
§nonce: u16§flags: u16§refs_latency_ms: u16Per-open settle windows; 0 = the server default.
status_latency_ms: u16§src_pty_id: u16GIT_OPEN_NO_CONTEXT = none. Otherwise the server joins path onto
that pty’s live cwd before upward discovery (docs/ide.md Decision 3).
parent_repo_id: u16GIT_OPEN_NO_CONTEXT = none. Otherwise path is a submodule path
relative to that repo’s worktree and the server resolves the
submodule’s own gitdir and worktree — a client never has to guess
where .gitmodules put it.
ref_prefixes: Vec<&'a str>Ref prefixes to watch; empty = every ref. A UI that renders branches and not tags stops paying for tags at every settle.
path: &'a strPlain UTF-8: a filesystem location the client chose (or, with
parent_repo_id, a repo-relative submodule path).
Implementations§
Source§impl GitOpenRequest<'_>
impl GitOpenRequest<'_>
Trait Implementations§
Source§impl<'a> Clone for GitOpenRequest<'a>
impl<'a> Clone for GitOpenRequest<'a>
Source§fn clone(&self) -> GitOpenRequest<'a>
fn clone(&self) -> GitOpenRequest<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more