---
title: "Diff"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.gitpando.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Pando API

## Fields

- `Diff.base_branch` (string, required) — The default branch.
- `Diff.base` (string, required) — The default branch's head.
- `Diff.head` (string, required) — The branch head.
- `Diff.merge_base` (string, required) — Where the diff starts (three-dot).
- `Diff.truncated` (boolean, required) — True when any file has `patch_omitted: budget`.
- `Diff.files` (array<object>, required)
  - `Diff.files.path` (string, required)
  - `Diff.files.status` (string, required)
    - one of `"added"`, `"modified"`, `"deleted"`, `"renamed"`
  - `Diff.files.binary` (boolean, required)
  - `Diff.files.old_path` (string, optional) — Only for `renamed`.
  - `Diff.files.old_sha` (string | null, optional)
  - `Diff.files.new_sha` (string | null, optional)
  - `Diff.files.old_mode` (string | null, optional)
  - `Diff.files.new_mode` (string | null, optional)
  - `Diff.files.additions` (integer | null, optional)
  - `Diff.files.deletions` (integer | null, optional)
  - `Diff.files.hunks` (array<object>, optional) — Only with `hunks=1`.
    - `Diff.files.hunks.old_start` (integer, required)
    - `Diff.files.hunks.old_lines` (integer, required)
    - `Diff.files.hunks.new_start` (integer, required)
    - `Diff.files.hunks.new_lines` (integer, required)
    - `Diff.files.hunks.lines` (array<string>, required) — Each line starts with `+`, `-`, ` `, or `\` (no newline at end of file).
  - `Diff.files.patch_omitted` (string, optional)
    - one of `"binary"`, `"too_large"`, `"budget"`
- `Diff.stats` (object, optional)
  - `Diff.stats.files` (integer, optional)
  - `Diff.stats.additions` (integer, optional)
  - `Diff.stats.deletions` (integer, optional)


Source: https://docs.gitpando.com/api/schemas/Diff/index.md
