Skip to main content

Module output

Module output 

Source
Expand description

Typed return shapes for [GitModule] methods.

Every public method on [GitModule] returns one of these structs (wrapped in anyhow::Result) instead of a format!-shaped String. The lds MCP layer then serialises the struct with serde_json::to_string_pretty so callers receive a stable JSON shape and can access fields directly.

Keep this module field-stable: any rename / type change is a wire breakage and must be paired with a SemVer bump on the lds-git crate and the lds MCP tool description.

Structs§

BranchDeleteOutput
BranchStatusOutput
CommitEntry
CommitOutput
DiffOutput
DotfileWarning
One dotfile / dot-dir path observed during commit. tracked=true means the change was still committed (with a warn); tracked=false means it was skipped from staging.
EntryStatus
One entry from git status (a single path with its current state).
FetchOutput
IsPushedOutput
LogOutput
MergeOutput
RemoteEntry
RemoteListOutput
ResetOutput
SessionReleaseOutput
StatusOutput
TagPushedOutput
UnpushedCommitsOutput
WorktreeAddOutput
WorktreeEntry
WorktreeListOutput
WorktreeRemoveOutput
WorktreeStateOutput

Enums§

OtherStagedMode
How [GitModule::commit] handles staged paths outside the only list.
ResetMode
StatusKind