pub enum History {
Off,
Manual,
}Expand description
Whether the workspace maintains a historica store’s skiplist — the
generated region of history/skipped.txt that scopes what historica record takes to the workspace’s reachable graph.
Recording itself is historica’s, not prov’s; what prov contributes is
which files are the workspace, and this axis says whether prov is asked to
keep the store’s scoping current (prov history-skips --write).
Default off, unlike recycle_bin: a version-control store is ongoing
storage the user has not asked for. It is also the wrong tool when the
transport is git, which already stores every pre-image and reconciles
concurrent histories — a historica store earns its keep on Dropbox,
Syncthing, iCloud, a synced network share.
off gates writing only. Computing and showing the plan works
regardless: asking what the workspace fails to reach is a question about
the workspace, not about history.
Variants§
Off
The skiplist is not maintained (off, the default). history-skips
still shows its plan; --write refuses.
Manual
The skiplist is rewritten when the user asks (manual) — prov history-skips --write, run by hand or by a pre-record script the user
wires up themselves. prov does not run the recording, so there is no
event for it to hook.
Implementations§
Source§impl History
impl History
Sourcepub fn captures(self) -> bool
pub fn captures(self) -> bool
Whether history-skips --write is permitted to rewrite the region.
Sourcepub fn from_config_str(value: &str) -> Option<Self>
pub fn from_config_str(value: &str) -> Option<Self>
Parse the history config spelling; unknown → None.
Sourcepub fn as_config_str(self) -> &'static str
pub fn as_config_str(self) -> &'static str
The history config spelling.
Trait Implementations§
impl Copy for History
impl Eq for History
impl StructuralPartialEq for History
Auto Trait Implementations§
impl Freeze for History
impl RefUnwindSafe for History
impl Send for History
impl Sync for History
impl Unpin for History
impl UnsafeUnpin for History
impl UnwindSafe for History
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.