Unseen — Accept all new (previously unseen) — allows automatically accepting snapshots which don't yet exist. I can't see it being that helpful — generally I either want to review any snapshots, or I'm running with --accept and will review in git.
There's some logic from ages ago that looks wrong,
|
// TODO: this seems to be making `unseen` be true when there is an |
|
// existing snapshot file; which seems wrong?? |
|
let unseen = self |
|
.snapshot_file |
|
.as_ref() |
|
.map_or(false, |x| fs::metadata(x).is_ok()); |
, and rather than fix & test it, I might propose deprecating it. To the extent it is indeed wrong, even less likely that people are using the option.
That said, very possibly others find this useful?
Unseen —
Accept all new (previously unseen)— allows automatically accepting snapshots which don't yet exist. I can't see it being that helpful — generally I either want to review any snapshots, or I'm running with--acceptand will review ingit.There's some logic from ages ago that looks wrong,
insta/insta/src/runtime.rs
Lines 520 to 525 in ce2b3fd
That said, very possibly others find this useful?