Skip to main content

Module git

Module git 

Source
Expand description

§GitTool (read + write)

A scoped git tool covering the software-engineering workflow: inspection (status/log/diff/show/branch/blame) and management (add/commit/checkout/merge/push/pull/fetch/tag/stash).

Write actions execute autonomously (no per-action approval) by explicit user choice — aegis manages git on its own. Safety is preserved structurally: an argv array (no shell → no injection) and validated refs/remotes/paths. Truly destructive history rewrites (reset --hard, clean -fd) are deliberately NOT exposed here — those stay on the terminal path, which warns before running them.

Interim backend: the git CLI (zero new deps, mirrors service). Per the Rust-first sourcing principle (docs/aegis-tool-capability-gaps.md §B), gix is the intended pure-Rust backend once it can be compile-verified.

Structs§

GitTool
Read + write git tool (autonomous writes, no approval).