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

[cli] Render changes to text properties as diffs. #9376

Merged
merged 2 commits into from Apr 11, 2022
Merged

Conversation

pgavlin
Copy link
Member

@pgavlin pgavlin commented Apr 10, 2022

Instead of simply rendering the old and new values for textual
properties, compute the diff between the old and new values and render
that. For single-line values, the diff is computed and rendered
character-wise, with simplification applied to avoid "small" diffs. For
multi-line values, the diff is computed and rendered linewise (as we
already to for textual assets).

Fixes #9136.

@pgavlin pgavlin requested a review from a team April 10, 2022 02:57
Instead of simply rendering the old and new values for textual
properties, compute the diff between the old and new values and render
that. For single-line values, the diff is computed and rendered
character-wise, with simplification applied to avoid "small" diffs. For
multi-line values, the diff is computed and rendered linewise (as we
already to for textual assets).

Fixes #9136.
@pgavlin pgavlin merged commit 21b9f29 into master Apr 11, 2022
@pulumi-bot pulumi-bot deleted the pgavlin/text-diff branch April 11, 2022 16:12
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.

[diffs] Improve diff rendering for long strings
2 participants