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.