CodeDiffChange
One changed section (hunk) of a file.
Kind: an object, used in responses.
Fields
Section titled “Fields”Every field is present in a response; empty ones are null.
| Field | Type | Description |
|---|---|---|
diff | CodeDiffChangeLine[] | The section’s lines: added, removed and unchanged context. |
header | string | Where the section is, as git writes it between @@ markers, for example -12,7 +12,9. |
Example
Section titled “Example”{ "diff": [ { "type": "Added", "text": "..." } ], "header": "..."}Where it’s used
Section titled “Where it’s used”- Inside
CodeDiffFile