|
166 | 166 | "cred_helpers": { |
167 | 167 | }, |
168 | 168 |
|
| 169 | + "delta": { |
| 170 | + "isStruct": true, |
| 171 | + "cType": "git_diff_delta", |
| 172 | + |
| 173 | + "dependencies": [ |
| 174 | + "../include/diff.h", |
| 175 | + "../include/diff_file.h", |
| 176 | + "../include/types.h" |
| 177 | + ], |
| 178 | + |
| 179 | + "fields": [ |
| 180 | + { |
| 181 | + "name": "status", |
| 182 | + "cType": "git_delta_t" |
| 183 | + }, |
| 184 | + { |
| 185 | + "name": "flags", |
| 186 | + "cType": "uint32_t" |
| 187 | + }, |
| 188 | + { |
| 189 | + "name": "similarity", |
| 190 | + "cType": "uint16_t" |
| 191 | + }, |
| 192 | + { |
| 193 | + "name": "nfiles", |
| 194 | + "cType": "uint16_t" |
| 195 | + }, |
| 196 | + { |
| 197 | + "name": "old_file", |
| 198 | + "cType": "git_diff_file" |
| 199 | + }, |
| 200 | + { |
| 201 | + "name": "new_file", |
| 202 | + "cType": "git_diff_file" |
| 203 | + } |
| 204 | + ] |
| 205 | + }, |
| 206 | + |
169 | 207 | "diff": { |
| 208 | + "dependencies": [ |
| 209 | + "../include/diff.h", |
| 210 | + "../include/delta.h", |
| 211 | + "../include/repository.h", |
| 212 | + "../include/tree.h", |
| 213 | + "../include/index.h", |
| 214 | + "../include/diff_options.h" |
| 215 | + ], |
| 216 | + |
170 | 217 | "functions": { |
171 | 218 | "git_diff_tree_to_tree": { |
172 | 219 | "isAsync": true, |
|
181 | 228 | "return": { |
182 | 229 | "isErrorCode": true |
183 | 230 | } |
| 231 | + }, |
| 232 | + |
| 233 | + "git_diff_num_deltas": { |
| 234 | + "ignore": false, |
| 235 | + "args": [{ "isSelf": true }] |
| 236 | + }, |
| 237 | + |
| 238 | + "git_diff_get_delta": { |
| 239 | + "ignore": false, |
| 240 | + "args": [{ "shouldAlloc": true, "isSelf": true }], |
| 241 | + "return": { |
| 242 | + "cType": "const git_diff_delta **", |
| 243 | + "copy": "git_diff_delta_dup" |
| 244 | + } |
184 | 245 | } |
185 | 246 | } |
186 | 247 | }, |
187 | 248 |
|
| 249 | + "diff_file": { |
| 250 | + "isStruct": true, |
| 251 | + "cType": "git_diff_file", |
| 252 | + |
| 253 | + "dependencies": [ |
| 254 | + "../include/diff.h", |
| 255 | + "../include/oid.h", |
| 256 | + "../include/types.h" |
| 257 | + ], |
| 258 | + |
| 259 | + "fields": [ |
| 260 | + { |
| 261 | + "name": "oid", |
| 262 | + "cType": "git_oid" |
| 263 | + }, |
| 264 | + { |
| 265 | + "name": "path", |
| 266 | + "cType": "const char *" |
| 267 | + }, |
| 268 | + { |
| 269 | + "name": "size", |
| 270 | + "cType": "git_off_t" |
| 271 | + }, |
| 272 | + { |
| 273 | + "name": "flags", |
| 274 | + "cType": "uint32_t" |
| 275 | + }, |
| 276 | + { |
| 277 | + "name": "mode", |
| 278 | + "cType": "uint16_t" |
| 279 | + } |
| 280 | + ] |
| 281 | + }, |
| 282 | + |
| 283 | + "diff_line": { |
| 284 | + "isStruct": true, |
| 285 | + "cType": "git_diff_line", |
| 286 | + |
| 287 | + "dependencies": [ |
| 288 | + "../include/diff.h", |
| 289 | + "../include/oid.h", |
| 290 | + "../include/types.h" |
| 291 | + ], |
| 292 | + |
| 293 | + "fields": [ |
| 294 | + { |
| 295 | + "name": "origin", |
| 296 | + "cType": "int" |
| 297 | + }, |
| 298 | + { |
| 299 | + "name": "old_lineno", |
| 300 | + "cType": "int" |
| 301 | + }, |
| 302 | + { |
| 303 | + "name": "new_lineno", |
| 304 | + "cType": "int" |
| 305 | + }, |
| 306 | + { |
| 307 | + "name": "num_lines", |
| 308 | + "cType": "int" |
| 309 | + }, |
| 310 | + { |
| 311 | + "name": "content_len", |
| 312 | + "cType": "size_t" |
| 313 | + }, |
| 314 | + { |
| 315 | + "name": "content_offset", |
| 316 | + "cType": "git_off_t" |
| 317 | + }, |
| 318 | + { |
| 319 | + "name": "content", |
| 320 | + "cType": "const char *" |
| 321 | + } |
| 322 | + ] |
| 323 | + }, |
| 324 | + |
188 | 325 | "diff_options": { |
189 | 326 | "isStruct": true, |
190 | 327 | "cType": "git_diff_options", |
|
305 | 442 | }, |
306 | 443 |
|
307 | 444 | "patch": { |
| 445 | + "isStruct": true, |
| 446 | + "forwardDeclare": true, |
| 447 | + "dependencies": [ |
| 448 | + "../include/delta.h", |
| 449 | + "../include/diff_file.h", |
| 450 | + "../include/diff_line.h" |
| 451 | + ], |
| 452 | + "functions": { |
| 453 | + "git_patch_get_delta": { |
| 454 | + "ignore": false, |
| 455 | + "args": [ |
| 456 | + { "isReturn": false, "isSelf": true } |
| 457 | + ], |
| 458 | + "return": { |
| 459 | + "copy": "git_diff_delta_dup" |
| 460 | + } |
| 461 | + }, |
| 462 | + |
| 463 | + "git_patch_from_diff": { |
| 464 | + "ignore": false, |
| 465 | + "isAsync": false, |
| 466 | + "isConstructorMethod": true |
| 467 | + }, |
| 468 | + |
| 469 | + "git_patch_num_hunks": { |
| 470 | + "ignore": false, |
| 471 | + "args": [ |
| 472 | + { "isReturn": false, "isSelf": true } |
| 473 | + ] |
| 474 | + }, |
| 475 | + |
| 476 | + "git_patch_num_lines_in_hunk": { |
| 477 | + "ignore": false, |
| 478 | + "args": [ |
| 479 | + { "isReturn": false, "isSelf": true } |
| 480 | + ] |
| 481 | + }, |
| 482 | + |
| 483 | + "git_patch_get_line_in_hunk": { |
| 484 | + "ignore": false, |
| 485 | + "args": [ |
| 486 | + { "isReturn": true }, |
| 487 | + { "isSelf": true } |
| 488 | + ] |
| 489 | + } |
| 490 | + } |
308 | 491 | }, |
309 | 492 |
|
310 | 493 | "pathspec": { |
|
474 | 657 | }, |
475 | 658 |
|
476 | 659 | "time": { |
| 660 | + "isStruct": true, |
477 | 661 | "cType": "git_time", |
478 | 662 | "freeFunctionName": "free", |
479 | 663 |
|
|
0 commit comments