-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix diff api response conversion for harness compareChange (#269)
* Fix diff api response conversion
- Loading branch information
1 parent
5098db8
commit 8764ac0
Showing
6 changed files
with
99 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,53 @@ | ||
diff --git a/five b/five | ||
new file mode 100644 | ||
index 0000000..54f9d6d | ||
--- /dev/null | ||
+++ b/five | ||
@@ -0,0 +1 @@ | ||
+five | ||
diff --git a/two b/four | ||
similarity index 100% | ||
rename from two | ||
rename to four | ||
diff --git a/one b/one | ||
index 5626abf..9c0408b 100644 | ||
--- a/one | ||
+++ b/one | ||
@@ -1 +1,2 @@ | ||
one | ||
+modified to two | ||
diff --git a/three b/three | ||
deleted file mode 100644 | ||
index 2bdf67a..0000000 | ||
--- a/three | ||
+++ /dev/null | ||
@@ -1 +0,0 @@ | ||
-three | ||
[ | ||
{ | ||
"sha": "c4e897c1fcd1cae04abf761f034ae4c5e210caad", | ||
"old_sha": "0000000000000000000000000000000000000000", | ||
"path": "hello.go", | ||
"old_path": "hello.go", | ||
"status": "ADDED", | ||
"additions": 8, | ||
"deletions": 0, | ||
"changes": 8, | ||
"content_url": "/api/v1/hello.go", | ||
"is_binary": false, | ||
"is_submodule": false | ||
}, | ||
{ | ||
"sha": "0000000000000000000000000000000000000000", | ||
"old_sha": "d7fcbf28651697b00add519d8b4402a5ab46ffc2", | ||
"path": "null.go", | ||
"old_path": "null.go", | ||
"status": "DELETED", | ||
"additions": 0, | ||
"deletions": 118, | ||
"changes": 118, | ||
"content_url": "/api/v1/null.go", | ||
"is_binary": false, | ||
"is_submodule": false | ||
}, | ||
{ | ||
"sha": "ce5a2cd34b697f7a8507192e7074b33737c6740c", | ||
"old_sha": "7697802e4d16b255e7ea22a86071cfbe9af6aa39", | ||
"path": "version4.go", | ||
"old_path": "version4.go", | ||
"status": "MODIFIED", | ||
"additions": 8, | ||
"deletions": 7, | ||
"changes": 15, | ||
"content_url": "/api/v1/version4.go", | ||
"is_binary": false, | ||
"is_submodule": false | ||
}, | ||
{ | ||
"sha": "", | ||
"path": "version_1.go", | ||
"old_path": "version1.go", | ||
"status": "RENAMED", | ||
"additions": 0, | ||
"deletions": 0, | ||
"changes": 0, | ||
"content_url": "/api/v1/version_1.go", | ||
"is_binary": false, | ||
"is_submodule": false | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,38 @@ | ||
[ | ||
{ | ||
"Path": "five", | ||
"Path": "hello.go", | ||
"Added": true, | ||
"Renamed": false, | ||
"Deleted": false, | ||
"Sha": "", | ||
"BlobID": "", | ||
"PrevFilePath": "" | ||
"PrevFilePath": "hello.go" | ||
}, | ||
{ | ||
"Path": "four", | ||
"Path": "null.go", | ||
"Added": false, | ||
"Renamed": true, | ||
"Deleted": false, | ||
"Renamed": false, | ||
"Deleted": true, | ||
"Sha": "", | ||
"BlobID": "", | ||
"PrevFilePath": "two" | ||
"PrevFilePath": "null.go" | ||
}, | ||
{ | ||
"Path": "one", | ||
"Path": "version4.go", | ||
"Added": false, | ||
"Renamed": false, | ||
"Deleted": false, | ||
"Sha": "", | ||
"BlobID": "", | ||
"PrevFilePath": "one" | ||
"PrevFilePath": "version4.go" | ||
}, | ||
{ | ||
"Path": "", | ||
"Path": "version_1.go", | ||
"Added": false, | ||
"Renamed": false, | ||
"Deleted": true, | ||
"Renamed": true, | ||
"Deleted": false, | ||
"Sha": "", | ||
"BlobID": "", | ||
"PrevFilePath": "three" | ||
"PrevFilePath": "version1.go" | ||
} | ||
] |