Skip to main content

write_state

Function write_state 

Source
pub fn write_state(
    repo_root: &Path,
    home_override: Option<&Path>,
    state: &mut StateV2,
) -> Result<(), WorktreeError>
Expand description

Atomically write state.json: write tmp -> fsync -> rename.