Skip to main content

Crate aqc_git_helpers

Crate aqc_git_helpers 

Source
Expand description

Read-only Git worktree state for Specular lock/verify.

Runs git status --porcelain=v1 -z as a subprocess and parses the NUL-separated records. No commits, merges, or object-database access. Disk existence is aqc-filetree; Git change detection is this crate. Contract: plan.md in this directory.

Structs§

PorcelainOptions
Output filtering.
WorktreeChange
One changed path.

Enums§

ChangeStatus
How one path differs from HEAD/index.
ColumnChange
One porcelain column’s change kind (X index column / Y worktree column).
GitError
Why a git query failed.

Constants§

PORCELAIN_VERSION
Porcelain version this crate speaks.

Functions§

changes_affecting_paths
The subset of changes whose path (or old_path for renames) equals an entry in paths or lies under one ("<entry>/" prefix — directory boundary, never substring).
dirty_paths
Convenience: worktree_changes then changes_affecting_paths.
is_worktree_clean
True when worktree_changes is empty (respecting options).
parse_porcelain_v1z
Parse git status --porcelain=v1 -z output.
worktree_changes
Run porcelain status at repo_root and return all changes.