Skip to content

fix(get-changed-files): exclude original location of renamed files when ignore_deleted is set - #816

Merged
danadajian merged 2 commits into
mainfrom
fix/ignore-deleted-renames
Oct 22, 2026
Merged

danadajian merged 2 commits into
mainfrom
fix/ignore-deleted-renames

Conversation

@danadajian

Copy link
Copy Markdown
Contributor

Summary

  • get-changed-files reports a rename as an addition plus a deletion, returning both the new path and the original path.
  • With ignore_deleted: true, the original path of a renamed file was still returned, even though it no longer exists in the repository. Consumers that pass the output to tools expecting real paths (e.g. running a linter on only the changed files) fail on renames.
  • ignore_deleted now drops the original path of renamed files, consistent with how it drops removed files. Behavior without ignore_deleted is unchanged.

🤖 Generated with Claude Code

…en ignore_deleted is set

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@danadajian
danadajian requested a review from a team as a code owner October 22, 2026 14:30
@danadajian
danadajian merged commit 49d840d into main Oct 22, 2026
3 checks passed
@danadajian
danadajian deleted the fix/ignore-deleted-renames branch October 22, 2026 14:39
@eg-oss-ci

Copy link
Copy Markdown

🎉 This PR is included in version 1.90.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants