Lazy per-exercise pristine snapshots (wave 5)
.lisplings-orig/ was written once, on the first run, so the 35 wave-4 exercises added later had no pristine copy and reset/x refused them. Snapshot lazily per exercise now: reset prefers git HEAD (git show HEAD:./exercises/...), falls back to the current file while it still has its ;; TODO marker, and refuses when neither is safe. The first-run store rebuild uses the same per-exercise sources, so a deleted .lisplings-orig/ recovers too, and is no longer repopulated from files the user may have solved.
This commit is contained in:
1 parent
a6e3fa2cf3
commit
40af05dbff
2 files changed
+90
-21
No files matched your search
@@ -88,9 +88,10 @@ solved.
|
||||
```
|
||||
|
||||
Progress lives in `.lisplings-state.sexp` - a plain s-expression you can
|
||||
read and edit. `reset` restores from a pristine snapshot taken under
|
||||
`.lisplings-orig/` the first time lisplings ran there, so start lisplings
|
||||
before editing anything.
|
||||
read and edit. `reset` restores from a pristine snapshot under
|
||||
`.lisplings-orig/`; snapshots are taken lazily per exercise, from git
|
||||
when possible, so an exercise added after the first run still resets to
|
||||
its original broken file.
|
||||
|
||||
## How an exercise works
|
||||
|
||||
|
||||
Reference in new issue
Block a user