# CodeDiffChange

One changed section (hunk) of a file.

**Kind:** an object, used in responses.

## Fields

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

| Field | Type | Description |
|---|---|---|
| `diff` | [`CodeDiffChangeLine`](https://docs.maitento.com/reference/types/code-diff-change-line.md)`[]` | 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

```json
{
  "diff": [
    {
      "type": "Added",
      "text": "..."
    }
  ],
  "header": "..."
}
```

## Where it's used

- Inside [`CodeDiffFile`](https://docs.maitento.com/reference/types/code-diff-file.md)
