Skip to main content

commit_binary

Function commit_binary 

Source
pub fn commit_binary(staged: &Path, destination: &Path) -> Result<()>
Expand description

Move a staged file over destination. On Windows a running executable cannot be overwritten but can be renamed, so the old one moves aside first.