Skip to content

STA-280 Exclude files and directories from inspect captures - #41

Merged
github-actions[bot] merged 2 commits into
mainfrom
feature/sta-280
Sep 16, 2026
Merged

github-actions[bot] merged 2 commits into
mainfrom
feature/sta-280

Conversation

@claudecafe

Copy link
Copy Markdown
Collaborator

User benefit

Agents can capture the relevant working-tree or staged changes with repeatable literal --exclude paths, without changing the working tree, index, or ignore rules. Git-detected renames crossing an exclusion boundary remain honest moves with explicit omitted-side content.

Checks

  • pnpm check (pass)

Walkthrough

https://review.diffwalk.dev/r/LDQwCco8J7FLqWAp69LYTw

minipai and others added 2 commits September 17, 2026 00:17
Add repeatable `inspect --exclude <path>` beside the `-- <path>...` list so an agent can drop unrelated files without touching the working tree, staging, or ignore rules. Exclusions are literal Git pathspecs applied before Diffwalk reads any file, so an excluded file cannot block capture.

Co-Authored-By: ことね <kotone@claudecafe.dev>
Apply literal --exclude after Git detects renames and before Diffwalk reads or
validates omitted sides, so a move crossing an exclusion keeps both paths and is
reported as Moved to/from excluded path with the omitted side marked excluded
rather than shown as empty. Exclusions are matched in Diffwalk instead of as Git
pathspecs, so Git can still pair the two sides while Diffwalk never reads the
excluded one; an excluded unsupported file no longer blocks the capture.

Co-Authored-By: ことね <kotone@claudecafe.dev>
@github-actions
github-actions Bot enabled auto-merge (rebase) September 16, 2026 22:22
@github-actions
github-actions Bot merged commit 48e0159 into main Sep 16, 2026
2 checks passed
@claudecafe
claudecafe deleted the feature/sta-280 branch September 17, 2026 02:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants