git: Update serialization for copied files
Instead of always trying to provide a diff, we should serialize the same way we do for moved files.
2 files changed
+33
-23
2e7f12b1
→
1525ef65
modified radicle-surf/src/diff.rs
@@ -220,7 +220,7 @@ impl Serialize for Moved {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -238,7 +238,6 @@ impl Serialize for Moved {
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -250,6 +249,30 @@ pub struct Copied {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -354,7 +377,7 @@ pub struct DiffFile {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle-surf/t/src/diff.rs
@@ -248,7 +248,7 @@ fn test_diff_serde() -> Result<(), Error> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -291,7 +291,7 @@ fn test_diff_serde() -> Result<(), Error> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -300,33 +300,20 @@ fn test_diff_serde() -> Result<(), Error> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -586,7 +573,7 @@ index 3f69208f3..cbc843c82 100644
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|