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§
- Porcelain
Options - Output filtering.
- Worktree
Change - One changed path.
Enums§
- Change
Status - How one path differs from HEAD/index.
- Column
Change - One porcelain column’s change kind (
Xindex column /Yworktree column). - GitError
- Why a git query failed.
Constants§
- PORCELAIN_
VERSION - Porcelain version this crate speaks.
Functions§
- changes_
affecting_ paths - The subset of
changeswhosepath(orold_pathfor renames) equals an entry inpathsor lies under one ("<entry>/"prefix — directory boundary, never substring). - dirty_
paths - Convenience:
worktree_changesthenchanges_affecting_paths. - is_
worktree_ clean - True when
worktree_changesis empty (respectingoptions). - parse_
porcelain_ v1z - Parse
git status --porcelain=v1 -zoutput. - worktree_
changes - Run porcelain status at
repo_rootand return all changes.