Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
refactor: use copy_leaf in cross-device move fallback (#1956)
Maximilian Roos30264fbdcb1a
diff --git a/src/commands/step_commands.rs b/src/commands/step_commands.rsindex f91812e9e..f7227a3a7 100644--- a/src/commands/step_commands.rs+++ b/src/commands/step_commands.rs@@ -900,11 +900,7 @@ fn copy_and_remove(src: &Path, dest: &Path, is_dir: bool) -> anyhow::Result<()>copy_dir_recursive(src, dest, true)?;fs::remove_dir_all(src).context(format!("removing source directory {}", src.display()))?;} else {- reflink_copy::reflink_or_copy(src, dest).context(format!(- "copying {} to {}",- src.display(),- dest.display()- ))?;+ copy_leaf(src, dest, true)?;fs::remove_file(src).context(format!("removing source file {}", src.display()))?;}Ok(())