mirror of
https://seed.radicle.dev/rad:z6cFWeWpnZNHh9rUW8phgA3b5yGt.git
synced 2026-11-29 14:10:27 +08:00
surf: add simple copy detection to diff
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
@@ -519,6 +519,7 @@ impl Repository {
|
||||
// Detect renames by default.
|
||||
let mut find_opts = git2::DiffFindOptions::new();
|
||||
find_opts.renames(true);
|
||||
find_opts.copies(true);
|
||||
diff.find_similar(Some(&mut find_opts))?;
|
||||
|
||||
Ok(diff)
|
||||
|
||||
Reference in New Issue
Block a user