Skip to content

CodeDiffChange

One changed section (hunk) of a file.

Kind: an object, used in responses.

Every field is present in a response; empty ones are null.

FieldTypeDescription
diffCodeDiffChangeLine[]The section’s lines: added, removed and unchanged context.
headerstringWhere the section is, as git writes it between @@ markers, for example -12,7 +12,9.
{
"diff": [
{
"type": "Added",
"text": "..."
}
],
"header": "..."
}