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

CUE documentation should talk about whether terser diffs are selling point #831

Closed
cueckoo opened this issue Jul 3, 2021 · 4 comments
Closed

Comments

@cueckoo
Copy link
Collaborator

cueckoo commented Jul 3, 2021

Originally opened by @paul-hammant in cuelang/cue#831

You know, like what git-diff would say about an item added to a list - how many lines does the underlying diff engine think has changed

@cueckoo cueckoo closed this as completed Jul 3, 2021
@cueckoo
Copy link
Collaborator Author

cueckoo commented Jul 3, 2021

Original reply by @xinau in cuelang/cue#831 (comment)

Thanks for your suggestion. I think it would be a good idea to add this feature to the documentation once cuelang/cue#8 is implemented :)

@cueckoo
Copy link
Collaborator Author

cueckoo commented Jul 3, 2021

Original reply by @paul-hammant in cuelang/cue#831 (comment)

I don't think so. This is a function of Git, Mercurial, Svn, Perforce, PlasticSCM. How pretty are diffs in that tech (unified diff really), for a number of change scenarios. And I say that becuase the at-rest format for CUE things is carriage-return delimited text (UTF8, or a codepage, etc), is it not??

@cueckoo
Copy link
Collaborator Author

cueckoo commented Jul 3, 2021

Original reply by @xinau in cuelang/cue#831 (comment)

@paul-hammant could you please elaborate a little bit more and provide an example on your issue/request as I'm struggling to understand the underlying issue.

@cueckoo
Copy link
Collaborator Author

cueckoo commented Jul 3, 2021

Original reply by @paul-hammant in cuelang/cue#831 (comment)

$> diff ABCv1.toml ABCv2.toml

What does that diff look like (but CUE source not .txt files)? Is it noisy for a given scenario, or terse? If XML is OK for diffs (for that scenario). JSON is noisy because of the commas. What does CUE diffs look like?

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