Skip to main content

Module git_runner

Module git_runner 

Source
Expand description

GitRunner trait and DefaultGitRunner production implementation.

The trait is the primary testability seam in zeph-worktree. Unit tests inject a FakeGitRunner (defined in the test module) that verifies argument hygiene without touching the file system. Production code uses DefaultGitRunner, which delegates to tokio::process::Command with a default timeout of 30 seconds.

Structs§

DefaultGitRunner
Production GitRunner that invokes the system git binary.

Traits§

GitRunner
Runs git sub-commands on behalf of WorktreeManager.