Preparatory PR with .wls files for easier changes tracking #2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi @maksymovchynnikov,
I'm creating this PR following our discussion some time ago about tracking changes in Mathematica code. As mentioned, we figured that it's much easier if one uses .wls files instead of .nb. In this PR, I simply saved the most important notebooks in .wls format and stored them in the
wls
andcodes/wls
directories. There are no real changes to your code here.For an even more convenient changes comparison, I also included a small script
prepare_wls_files.sh
, which simply makes sure that all .wls files in the repo have Chapters and Titles closed, as otherwise just opening/closing them appears as a change in the code.To summarize, if you agree with this approach, one would have to follow this workflow:
wls
directory./prepare_wls_files.sh
Then, when reviewing changes, one can ignore those in .nb files (which are impossible to track) and only look at .wls, knowing that what's in the .nb is identical.
Unfortunately, this is not a perfect solution - if more than one person modifies a notebook, the changes can be merged easily in the corresponding .wls, but probably would have to be included manually in the notebook. However, at least such changes/conflicts will be clearly visible when comparing .wls files.
Best,
Jeremi