Skip to content

fix: treat unchanged symlinks as identical in diff - #1829

Draft
magrathean-uk wants to merge 1 commit into
rustic-rs:mainfrom
magrathean-uk:fix/issue-1776
Draft

fix: treat unchanged symlinks as identical in diff#1829
magrathean-uk wants to merge 1 commit into
rustic-rs:mainfrom
magrathean-uk:fix/issue-1776

Conversation

@magrathean-uk

Copy link
Copy Markdown

Summary

Treats unchanged symlinks as identical during diff, while keeping the existing target comparison intact.

Why

Symlink targets were compared correctly, but the final node comparison treated symlinks as non-comparable and reported unchanged links as modified. The comparison now accepts the already-checked target result.

Validation

  • cargo test --locked --test backup_restore diff_reports_unchanged_symlinks_as_identical
  • git diff --check

Fixes #1776.

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.

diff always reports symlinks as "M"

1 participant