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

READY : (willbe): Update diff functionality and improve detail #1238

Merged
merged 4 commits into from
Mar 25, 2024

Conversation

Barsik-sus
Copy link
Contributor

@Barsik-sus Barsik-sus commented Mar 22, 2024

Revamp the existing difference functionality by introducing a new enum 'DiffItem' that now allows to specify differences both in file and in content separately. This change significantly increases the level of detail in displaying what has changed between files or contents. The 'similar' crate has been added to assist in providing this improved diff functionality.

Example of executing the willbe .publish.diff command

example

Revamp the existing difference functionality by introducing a new enum 'DiffItem' that now allows to specify differences both in file and in content separately. This change significantly increases the level of detail in displaying what has changed between files or contents. The 'similar' crate has been added to assist in providing this improved diff functionality.
The `DiffReport` struct is now cloneable, and received two new methods: `exclude` and `has_changes`. The former allows for exclusion of specified items from a report, while the latter checks if there are changes within the `DiffItems`. The commit also modifies the `crate_diff` function to compare two crate archives more accurately, as well as incorporating the `IGNORE_LIST` in the `publish_diff` and `package` modules to exclude certain files from the differential report.
The IGNORE_LIST constant in `module/move/willbe/src/entity/package.rs` file has been updated. Instead of ignoring "Cargo.toml.orig", the updated list now ignores "Cargo.toml". This change aligns with the fact that "Cargo.toml" files are more crucial to track for changes.
@Wandalen Wandalen merged commit 9043c5c into Wandalen:alpha Mar 25, 2024
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.

2 participants