Skip to main content

commit_all

Function commit_all 

Source
pub fn commit_all(staged: Vec<Staged>) -> Result<Vec<PathBuf>, SwapFailure>
Expand description

Rename every staged file into place, stopping at the first failure.

fs::rename REPLACES a symlink at the destination rather than following it, which is the property the whole staging dance is for. Same directory, so EXDEV cannot arise.