pub struct SessionContextChangedData {
pub base_commit: Option<String>,
pub branch: Option<String>,
pub cwd: String,
pub git_root: Option<String>,
pub head_commit: Option<String>,
pub host_type: Option<WorkingDirectoryContextHostType>,
pub pending_git_context: Option<bool>,
pub repository: Option<String>,
pub repository_host: Option<String>,
}Expand description
Session event “session.context_changed”. Updated working directory and git context after the change
Fields§
§base_commit: Option<String>Base commit of current git branch at session start time
branch: Option<String>Current git branch name
cwd: StringCurrent working directory path
git_root: Option<String>Root directory of the git repository, resolved via git rev-parse
head_commit: Option<String>Head commit of current git branch at session start time
host_type: Option<WorkingDirectoryContextHostType>Hosting platform type of the repository (github or ado)
pending_git_context: Option<bool>Set on the immediate preliminary event of a working-directory change, before the git context is resolved. A settled follow-up event (enriched with git context, or cwd-only for a non-repository) is always emitted afterward, so observers may defer to it. Absent on standalone/final events (e.g. relay context changes).
repository: Option<String>Repository identifier derived from the git remote URL (“owner/name” for GitHub, “org/project/repo” for Azure DevOps)
repository_host: Option<String>Raw host string from the git remote URL (e.g. “github.com”, “mycompany.ghe.com”, “dev.azure.com”)
Trait Implementations§
Source§impl Clone for SessionContextChangedData
impl Clone for SessionContextChangedData
Source§fn clone(&self) -> SessionContextChangedData
fn clone(&self) -> SessionContextChangedData
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more