Skip to content

Fix an error when staging the deletion of binary files#6

Merged
sile merged 1 commit intomainfrom
rename-binary-file
Feb 4, 2025
Merged

Fix an error when staging the deletion of binary files#6
sile merged 1 commit intomainfrom
rename-binary-file

Conversation

@sile
Copy link
Copy Markdown
Owner

@sile sile commented Feb 4, 2025

Copilot Summary

This pull request includes changes to the way binary file diffs are handled in the src/diff.rs and src/git.rs files. The updates aim to improve the accuracy and reliability of generating binary file diffs by modifying the method calls and parameters.

Changes to binary file diff handling:

  • src/diff.rs: Updated the FileDiff implementation to use the binary_file_diff method instead of new_file_diff for binary content diffs.
  • src/git.rs: Modified the binary_file_diff function to include an additional -- parameter in the diff command to ensure proper handling of file paths and to differentiate between staged and unstaged changes.

@sile sile merged commit db3b4f3 into main Feb 4, 2025
9 checks passed
@sile sile deleted the rename-binary-file branch February 4, 2025 04:30
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