username:passwordAuthorization: Basic *****************curl --location --request GET '/repos///compare/...' \
--header 'Authorization: Basic <encoded-value>'{
"Commits": [
{
"Branch": "",
"ResolvedID": [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"ID": [
218,
83,
16,
112,
7,
175,
148,
117,
167,
230,
192,
156,
244,
173,
241,
233,
111,
203,
90,
16
],
"Author": {
"Name": "yystopf",
"Email": "yystopf@example.com",
"When": "2022-12-07T15:51:42+08:00"
},
"Committer": {
"Name": "yystopf",
"Email": "yystopf@example.com",
"When": "2022-12-07T15:51:42+08:00"
},
"CommitMessage": "添加 '1'\n",
"Signature": null,
"Parents": [
[
101,
230,
108,
69,
165,
122,
230,
138,
121,
73,
194,
80,
123,
40,
183,
206,
234,
154,
10,
13
]
],
"Sha": "da53107007af9475a7e6c09cf4adf1e96fcb5a10",
"ParentShas": [
"65e66c45a57ae68a7949c2507b28b7ceea9a0a0d"
]
}
],
"Diff": {
"Start": "",
"End": "",
"NumFiles": 1,
"TotalAddition": 1,
"TotalDeletion": 0,
"Files": [
{
"Name": "1",
"NameHash": "356a192b7913b04c54574d18c28d46e6395428ab",
"OldName": "1",
"Index": 1,
"Addition": 1,
"Deletion": 0,
"Type": 1,
"IsCreated": true,
"IsDeleted": false,
"IsBin": false,
"IsLFSFile": false,
"IsRenamed": false,
"IsAmbiguous": false,
"IsSubmodule": false,
"Sections": [
{
"FileName": "1",
"Name": "",
"Lines": [
{
"LeftIdx": 0,
"RightIdx": 0,
"Match": 0,
"Type": 4,
"Content": "@@ -0,0 +1 @@",
"Comments": null,
"SectionInfo": {
"Path": "1",
"LastLeftIdx": 0,
"LastRightIdx": 0,
"LeftIdx": 0,
"RightIdx": 1,
"LeftHunkSize": 0,
"RightHunkSize": 0
}
},
{
"LeftIdx": 0,
"RightIdx": 1,
"Match": -1,
"Type": 2,
"Content": "+dsfsdfj",
"Comments": null,
"SectionInfo": null
}
]
}
],
"IsIncomplete": false,
"IsIncompleteLineTooLong": false,
"IsProtected": false,
"IsGenerated": false,
"IsVendored": false,
"IsViewed": false,
"HasChangedSinceLastReview": false,
"Language": ""
}
],
"IsIncomplete": false,
"NumViewedFiles": 0
},
"CommitsCount": 1,
"Latestsha": "da53107007af9475a7e6c09cf4adf1e96fcb5a10"
}