onlydustxyz / starklings

An interactive tutorial to get you up and running with Starknet
309 stars 83 forks source link

Displaying the solution should not depend on the current changes in the exercise file #145

Closed Bernardstanislas closed 2 years ago

Bernardstanislas commented 2 years ago

Currently the mechanism used to display the solution is to apply a patch to the exercise file. Whenever a change exists in the file, the patch is still applied on a modified file compared to what the patch is expecting.

A simple solution would be to git stash the file and then git stash pop once the solution is computed.