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§
- Branch
Delete Output - Branch
Status Output - Commit
Entry - Commit
Output - Diff
Output - Dotfile
Warning - One dotfile / dot-dir path observed during commit.
tracked=truemeans the change was still committed (with a warn);tracked=falsemeans it was skipped from staging. - Entry
Status - One entry from
git status(a single path with its current state). - Fetch
Output - IsPushed
Output - LogOutput
- Merge
Output - Remote
Entry - Remote
List Output - Reset
Output - Session
Release Output - Status
Output - TagPushed
Output - Unpushed
Commits Output - Worktree
AddOutput - Worktree
Entry - Worktree
List Output - Worktree
Remove Output - Worktree
State Output
Enums§
- Other
Staged Mode - How [
GitModule::commit] handles staged paths outside theonlylist. - Reset
Mode - Status
Kind