Viewing a single comment thread. View all comments

SatoshiNotMe t1_j6wnj9w wrote

Very nice and I appreciate you sharing the code as well as motivation on your blog. The code example to save snapshot looks simple. Did I understand correctly that when you reload a snapshot it puts your current directory into the git state corresponding the checkpoint ?

1

latefordinnerstudios OP t1_j6wvpbk wrote

Mostly yes, when you load a snapshot it first saves your current directory (with git stash —-include-untracked) then it puts your current directory in the same state as the checkpoint. (It performs a git fetch followed by a git checkout).

I wrote more about it in the docs:

http://jellyml.com/docs.html#eat

2