Skip to main content

Module git

Module git 

Source
Expand description

Native git support: remote-repo reading (cached shallow clone) and a shadow history of agent changes.

  • repo_url parses repository URLs into a repo_url::RepoRef.
  • clone maintains a bounded, SSRF-guarded local clone cache.
  • shadow records agent edits in a git history kept outside the user’s own .git.

All git invocations go through run_git, which never uses a shell, always disables interactive credential prompts (so a private/auth-required remote fails fast instead of hanging), and enforces a wall-clock timeout.

Modules§

clone
Bounded, SSRF-guarded local clone cache for remote repositories.
repo_url
Repository URL detection & parsing.
shadow
Shadow git history of agent changes.

Structs§

GitOutput
Result of a single git invocation.

Functions§

git_available
true if a git binary is callable.
run_git
Run git <args> in cwd with extra env vars and a wall-clock timeout.