Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add deduplicate conflict mode #406

Merged
merged 4 commits into from
Sep 4, 2024

Conversation

TheExistingOne
Copy link

Change Summary

I added a new conflict mode called deduplicate that acts as a hybrid of skip and rename_new. When the conflicting files are the same per filecmp it'll skip the new one, and if they're different it'll rename them.

This can be helpful when sorting a large number of files at once while minimizing duplicates, without accidentally overwriting actual data.

Related issue number

I believe this would resolve #277.

Checklist

  • Tests for the changes exist and pass on CI
  • Documentation reflects the changes where applicable
  • Change is documented in CHANGELOG.md (if applicable)
  • My PR is ready to review

@tfeldmann
Copy link
Owner

What a great PR. Thanks a lot!

@tfeldmann tfeldmann merged commit aa37f73 into tfeldmann:main Sep 4, 2024
13 checks passed
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.

on_conflict: idempotent
2 participants