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

CAP: Add examples of how to generate and apply diffs of xdr files #935

Merged
merged 1 commit into from
May 4, 2021

Conversation

leighmcculloch
Copy link
Member

What

Add examples of how to generate and apply diffs in XDR files in CAPs.

Why

Generating a diff is relatively self-explanatory and simple, but it is worth calling out to people we expect them to just use a git diff and not to generate an entire patch containing commits.

Applying a diff is relatively painful, especially for diffs that have been pasted into markdown files. Diffs in markdown files will almost always have whitespace inconsistencies that will cause the naked git apply command to error. It is capable of overlooking or fixing most whitespace errors and for folks who are unfamiliar with git apply the reject command is more useful because if there are conflicts it will leave the local space in a state that can be manually repaired.

This might be too prescriptive for folks who have their own workflows, but anyone who has their own workflow that differs from this basic workflow probably doesn't need to reference these commands, as long as the diffs they generate can be applied in this manner.

@MonsieurNicolas MonsieurNicolas merged commit 9b0d752 into master May 4, 2021
@leighmcculloch leighmcculloch deleted the leighmcculloch-patch-3 branch May 4, 2021 21:51
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.

2 participants