You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Follow-up to #3625 and PR #3631. The PR is restoring the existing worktree snapshot behavior from main while narrowing its same-call fix, following maintainer review.
The existing walker prunes directories matched by .gitignore. A force-added tracked file below such a directory can therefore be absent from the snapshot.
Scope
include tracked regular files below ignored directories without scanning unrelated ignored content;
keep untracked ignored paths excluded;
define the interaction with intent-to-add entries tracked in #3698;
reject symlinked path components and final symlinks;
avoid opening FIFOs, devices, sockets, and other non-regular files;
keep every read confined to the checkout root.
Expected behavior
Tracked regular files receive correct before/after snapshots even below ignored directories. Expanding coverage must not allow path traversal outside the checkout or block on special files.
Acceptance criteria
A force-added tracked file below an ignored directory is snapshotted and compared.
Activity