-
Notifications
You must be signed in to change notification settings - Fork 356
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
Create a more compact diff format #2400
Conversation
☔ The latest upstream changes (presumably #2373) made this pull request unmergeable. Please resolve the merge conflicts. |
Some "N lines skipped" have "..." after them and some not -- what's up with that? Is it possible to always print a few lines around where things changed, for context (the way |
0f66d93
to
62e6df0
Compare
done @rustbot review |
I think I'm going to have to just trust you on this one, since that Can you show how an example diff look like now? |
My plan was to just see how it goes in practice and adjust it if we see problems. Worst case is just some badly rendered diffs |
two random missing lines in a stderr cause: at the two line skip point: when only one line would be skipped: when just some chars change in a line: when you both add and remove chars from a line: when you do larger diffs: the last one is not great... I could make it like "more than half of the chars must be the same" |
Nice! I think the one thing I am missing is whether
that makes this quite clear; should we have something similar? |
Also, does this always print the first and last line? Not that I object, just a bit surprising. In particular it seems to be the first two lines and the last one line, which is strangely asymmetric? |
@rustbot author |
☔ The latest upstream changes (presumably #2449) made this pull request unmergeable. Please resolve the merge conflicts. |
continued in oli-obk/ui_test#8 |
An example showcasing all the possible render combinations