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

Highlight diffs #42

Merged
merged 12 commits into from
Dec 25, 2019
Merged

Highlight diffs #42

merged 12 commits into from
Dec 25, 2019

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented Dec 25, 2019

Requires an opt-in for now (cargo test --features trybuild/diff).

Currently unix-only. We will need to look into how to get highlighted background color reliably on Windows terminals, and ideally implement support for it in https://github.com/BurntSushi/termcolor.

The diff is backed by https://github.com/dtolnay/dissimilar which is intended to produce human readable diffs with less noise than raw Myers' algorithm.

The intended output looks like:

Tracking issue: #41
Closes #25. Closes #26. Closes #27.

@dtolnay dtolnay merged commit a6f367c into master Dec 25, 2019
@dtolnay dtolnay deleted the dissimilar branch December 25, 2019 22:37
@dtolnay dtolnay mentioned this pull request Dec 25, 2019
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.

Print diff along with expected/actual output
1 participant