Skip to content

fix(git): properly track both paths in file rename operations#5

Merged
urmzd merged 2 commits intomainfrom
fix/git-rename-tracking
Mar 29, 2026
Merged

fix(git): properly track both paths in file rename operations#5
urmzd merged 2 commits intomainfrom
fix/git-rename-tracking

Conversation

@urmzd
Copy link
Copy Markdown
Owner

@urmzd urmzd commented Mar 29, 2026

Summary

  • Refactor file_statuses() to correctly handle git rename operations by recording the old path as deleted (D) and the new path as renamed (R)
  • Bump version to 2.4.3 across all workspace crates

Test plan

  • Added unit test file_statuses_includes_both_sides_of_rename verifying both old and new paths are tracked
  • Run cargo test to confirm all tests pass

urmzd added 2 commits March 28, 2026 22:51
Update version numbers across all workspace crates from 2.4.2
to 2.4.3 in Cargo.lock.
Refactor file_statuses() to correctly handle git rename operations
by detecting renames and recording both the old path as deleted
and the new path as renamed. Previously, renames were not properly
tracked on both sides of the rename arrow.

Add comprehensive test to verify that both old and new paths are
recorded when a file is renamed via git mv.
@urmzd urmzd merged commit 4bb39e8 into main Mar 29, 2026
4 checks passed
@urmzd urmzd deleted the fix/git-rename-tracking branch March 29, 2026 04:16
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.

1 participant