Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide option to detect modification based on hash, rather than on save location #3

Open
tefkah opened this issue Oct 26, 2021 · 0 comments

Comments

@tefkah
Copy link
Owner

tefkah commented Oct 26, 2021

It would be nice if only the nodes that have been modified would get saved, rather than relying on the location of saving.

One way to do this would be to calculate the hash of the node-tree and compare that to a previous value.

The main problem with this approach is that the hash would obviously change every save, because the hash of cannot include itself (I'm pretty sure).
So then I would need to compare hashes excluding the property drawer, which I don't really know how to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant