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

Support 'patch' files in exercises and solutions #154

Open
eamelink opened this issue Mar 23, 2021 · 1 comment
Open

Support 'patch' files in exercises and solutions #154

eamelink opened this issue Mar 23, 2021 · 1 comment

Comments

@eamelink
Copy link

Currently nextExercise and pullSolution overwrite entire files. It would be cool if they would support patching an existing file with - for example - the diff between the file in the current and the previous exercise. So that students can apply one particular exercise solution to their files, without overwriting their entire file.

@eloots
Copy link
Collaborator

eloots commented May 30, 2022

@eamelink
That's a good idea; the question is how to apply this in practice without requiring more than beginners knowledge of git. Imagine that a student changes the test code for the current exercise, solves the exercise and makes the tests pass. Now, if a patch is supplied to change a current test to the tests for the next exercise, applying that patch may result in a merge conflict; do we expect student to be able to resolve it? I don't think we can make that assumption.
Related to #180

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

2 participants