avc check-ignore
Reports, for each given path, whether it is excluded from snapshots by an .avcignore rule — and if so, which pattern is responsible. It’s AVC’s analog of git check-ignore.
Use it to diagnose why an expected file is missing from a snapshot, branch workspace, or diff. An over-broad ignore pattern (say an unanchored vendor/) can silently exclude source; this command names the exact rule so you can fix it.
avc check-ignore web/features/vendor/screen.tsxavc check-ignore --json src/main.go vendor/pkg/x.goPaths are interpreted relative to the active branch’s source directory — the workspace on a branch, the project root on main. The ignore rules are the root .avcignore layered with the workspace’s, exactly as a snapshot sees them.
| Flag | Description |
|---|---|
--json | JSON output |
Output
Section titled “Output”ignored debug.log (matched by '*.log')tracked src/main.goA file is reported ignored when it matches a rule directly or when any ancestor directory is ignored (the snapshot walk skips ignored directories wholesale).
JSON output
Section titled “JSON output”{ "results": [ { "path": "src/main.go", "ignored": false }, { "path": "debug.log", "ignored": true, "pattern": "*.log" } ], "success": true}Exit code
Section titled “Exit code”Mirrors git check-ignore: 0 when at least one given path is ignored, 1 when none are — so it’s usable in scripts.
See also
Section titled “See also”- Snapshots → What’s excluded — how
.avcignorelayering and the “ignoring never untracks” rule work