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:
@@ -302,7 +302,13 @@ fn test_diff_serde() -> Result<(), Error> {
|
||||
"oldPath": "text/emoji.txt",
|
||||
"newPath": "emoji.txt",
|
||||
}],
|
||||
"copied": [],
|
||||
"copied": [{
|
||||
"diff": {
|
||||
"type": "empty",
|
||||
},
|
||||
"newPath": "file_operations/copied.md",
|
||||
"oldPath": "README.md",
|
||||
}],
|
||||
"modified": [{
|
||||
"path": "README.md",
|
||||
"diff": {
|
||||
@@ -343,7 +349,7 @@ fn test_diff_serde() -> Result<(), Error> {
|
||||
}],
|
||||
"stats": {
|
||||
"deletions": 9,
|
||||
"filesChanged": 4,
|
||||
"filesChanged": 5,
|
||||
"insertions": 4,
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user