Skip to main content

Module git

Module git 

Source
Expand description

Async git operations via the git CLI.

All functions use tokio::process::Command — no blocking I/O.

Structs§

GitFileStatus
Status of a single file.
GitLogEntry
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 = true shows staged changes, false shows 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).