Added instructions for patch files

This commit is contained in:
Chris Boesch 2025-08-24 16:31:22 +02:00
parent c36fe8007d
commit fd9e9aa36e
No known key found for this signature in database
GPG Key ID: 52F277A65F687F38

View File

@ -98,16 +98,18 @@ has a patch in `patches/healed` that “heals” it.
When you change an exercise, youll usually need to update When you change an exercise, youll usually need to update
its patch too. Thats where our little helper Gollum comes in: its patch too. Thats where our little helper Gollum comes in:
1. In the project root, create a folder called answers/. 1. In the project root, create a folder called answers/
2. Put your solved version of the exercise file in there. 2. Put your solved version of the exercise file in there
3. Back in the root, run: 3. Back in the root, run:
`./patches/gollum <exercise-number>` `./patches/gollum <exercise-number>`
For example: ./patches/gollum 106
For example: `./patches/gollum 106`
This will generate a shiny new patch. This will generate a shiny new patch.
Double-check everything by asking the magical Eowyn: Double-check everything by asking the magical Eowyn:
`./patches/eowyn` `./patches/eowyn`
If all tests pass: 🎉 Youre done! If all tests pass: 🎉 Youre done!
Dont forget to commit the patch file. Dont forget to commit the patch file.