There is an ongoing problem with the script `@button write-leoPyRef`.
Iirc, this script is intended to be run from a dev's local leoPy.leo file.
There is a big glitch. After running this script Leo's git-diff command reports minimal changes, but actually loading and saving LeoPyRef.leo creates huge diffs as far as git itself is concerned.
I'm not sure what to do about this. Rev be3e404c in devel contains what I think is the latest version of LeoPyRef.leo, with the big diff. This "round trips" properly: loading and saving LeoPyRef.leo creates a "null" diff (except for whitespace.)
Summary
My inclination is to leave everything alone for now, with the understanding that the new procedure should be:
- Run @button write-leoPyRef.
- Use Leo's git-diff command to check the "logical" diffs, ignoring node placement.
- Load LeoPyRef.leo and save same.
- Use the actual git-diff to double check the "real" diffs, which should be minimal.
- Commit LeoPyRef.leo if there is a non-trivial real diff.
Your comments, please.
Edward