logoalt Hacker News

wrsyesterday at 8:51 PM2 repliesview on HN

jj already pretty much does that with the oplog. A consistent way of making new snapshots in the background would be nice though. (Currently you have to run a jj command — any jj command — to capture the working directory.)


Replies

sfinkyesterday at 10:27 PM

You can configure watchman to do it. `fsmonitor.watchman.register-snapshot-trigger = true`

I don't recommend it, though, at least not on large repositories. Too much opportunity to collide with command-line jj write operations.

stavrosyesterday at 9:43 PM

I don't think you have to, you can run the integrated watcher, no?