STA-280 Exclude files and directories from inspect captures - #41
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User benefit
Agents can capture the relevant working-tree or staged changes with repeatable literal
--excludepaths, 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