Description
I'm not sure if this is a bug report or a feature request for a warning. But especially if you have snapshot.auto-track = none() you might want to track a folder, notice that you didn't want to track the entire folder, do jj undo, and then your files are gone.
Steps to Reproduce the Problem
jj config set --repo 'snapshot.auto-track' 'none()'
touch foo
jj file track foo
jj undo
Expected Behavior
Multiple options:
- just untrack the file again, keeping it on disk
- warn that the file was removed, suggesting
jj file untrack for non-destructive revert
Actual Behavior
The file that was tracked is deleted. Restoring it is not too hard if you know your way around the op log and notice it immediately.
Specifications
- Platform: Linux
- Version: 0.40.0
Description
I'm not sure if this is a bug report or a feature request for a warning. But especially if you have
snapshot.auto-track = none()you might want to track a folder, notice that you didn't want to track the entire folder, dojj undo, and then your files are gone.Steps to Reproduce the Problem
jj config set --repo 'snapshot.auto-track' 'none()'touch foojj file track foojj undoExpected Behavior
Multiple options:
jj file untrackfor non-destructive revertActual Behavior
The file that was tracked is deleted. Restoring it is not too hard if you know your way around the op log and notice it immediately.
Specifications