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

I am interested only in the INSERTED/DELETED/CHANGED lines, not in the EQUAL lines #459

Open
kazurayam opened this issue Feb 2, 2024 · 2 comments

Comments

@kazurayam
Copy link
Owner

kazurayam commented Feb 2, 2024

Let me suppose that I have a diff result as follows:

スクリーンショット 2024-02-02 18 33 31

I will be interest in the INSERTED, DELETED, CHANGED lines, but not in the EQUAL lines.

Let me assume that I have a diff result of 1500 lines, in which 90% of lines are EQUAL. The diff result will be difficult to look through --- I need to scroll the view a lot of times. I would rather like the EQUAL lines are trimmed of so that I can easily see the INSERTED, DELETE, CHANGED lines and understand them.

@kazurayam
Copy link
Owner Author

kazurayam commented Feb 7, 2024

I have developed a new java library:

java-diff-report

which support the "compact" format of diff report, as described at

kazurayam/java-diff-report#6

image

Please note that in the line 6 and 12 there is a gap where the equal lines are trimmed off.

The java-diff-report library provides a set of Java classes com.kazurayam.difflib.text.Differ and others. These classes can be used by the materialstore. Then the materialstore's text reports can reuse the feature of "compact" format.

@kazurayam kazurayam changed the title Texts diff report in HTML that is capable to show/hide the detail section by toggling INSERTED/DELETED/CHANGED/EQUAL button I am interested only in the INSERTED/DELETED/CHANGED lines, not in the EQUAL lines Feb 7, 2024
@kazurayam
Copy link
Owner Author

kazurayam commented Feb 8, 2024

Another sample output created by the java-diff-report library:

diff_large_inputs

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

No branches or pull requests

1 participant