gitr
Async typed git CLI wrapper for agents and automation.
Overview
gitr shells out to the git binary and provides:
- Async-first — every operation is
asyncviatokio::process::Command. - Typed porcelain parsing —
status,worktree list,log,branchparsed into structs. - Structured errors — distinguish dirty trees, merge conflicts, missing branches, timeouts.
- Agent-centric API — worktrees, rebase, merge-tree, stash: everything an AI agent needs.
- Zero C dependencies — pure Rust, fast compile, easy cross-compile.
Quick start
Add to your Cargo.toml:
[]
= "0.1"
Open a repository
use Repository;
async
Worktree workflow
use Repository;
async
Feature flags
| Feature | Default | Description |
|---|---|---|
tracing |
✅ | Emit tracing spans for command execution. |
MSRV
Rust 1.80.
Changelog
See CHANGELOG.md.
License
MIT