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

When making easier : use diff to keep old code? #32

Open
mr-eggleton opened this issue Feb 27, 2021 · 0 comments
Open

When making easier : use diff to keep old code? #32

mr-eggleton opened this issue Feb 27, 2021 · 0 comments

Comments

@mr-eggleton
Copy link

mr-eggleton commented Feb 27, 2021

Currently we comment out all of the old code and append it underneath.
It would be better if we could.

  1. In the exercise build make patches between the initials
  2. Get a diff of the current code to the initial.
  3. Revert back to the initial but then add our change back in on the line above as a comment
  4. Apply the correct patch between initials

See http://github.com/kpdecker/jsdiff

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