Merge pull request 'Added instructions for patch files' (#298) from gollum into main

Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/298
This commit is contained in:
Chris Boesch 2025-08-24 16:31:54 +02:00
commit d4215ce5c6

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
its patch too. Thats where our little helper Gollum comes in:
1. In the project root, create a folder called answers/.
2. Put your solved version of the exercise file in there.
1. In the project root, create a folder called answers/
2. Put your solved version of the exercise file in there
3. Back in the root, run:
`./patches/gollum <exercise-number>`
For example: ./patches/gollum 106
For example: `./patches/gollum 106`
This will generate a shiny new patch.
Double-check everything by asking the magical Eowyn:
`./patches/eowyn`
If all tests pass: 🎉 Youre done!
Dont forget to commit the patch file.