Expand description
Async git operations via the git CLI.
All functions use tokio::process::Command — no blocking I/O.
Structs§
- GitFile
Status - Status of a single file.
- GitLog
Entry - A single git log entry.
- GitStatus
- Git repository status.
Enums§
- GitError
- Git errors.
Functions§
- current_
branch - Get the current branch name.
- diff
- Get the diff (unified format).
staged = trueshows staged changes,falseshows unstaged. - diff_
file_ content - Get the diff for a specific file.
- is_repo
- Check if a path is inside a git repository.
- list_
modified_ files - List files modified since HEAD.
- log
- Get recent log entries.
- repo_
root - Get the repository root directory.
- status
- Get the repository status (branch + changed files).