Skip to content
GitmoapAPIBeta
Schema

FileLinesResponse

A bounded window of a file's lines at a ref — the response of GET .../file-lines. Powers context expansion above/below a hunk and reading a file larger than the per-file patch cap piece-by-piece.

Shape

  • endinteger0–∞1-based line number of the last returned line (inclusive).
  • has_more_afterbooleanA line exists after end.
  • has_more_beforebooleanA line exists before start (i.e. start > 1).
  • is_binarybooleanThe file is binary; lines is empty (line windows are text-only).
  • linesarray of string
  • pathstring
  • refCommitHash (string)The ref the lines were read at (echoes the request ref).
  • startinteger0–∞1-based line number of the first returned line.

Example

Synthesized example
{
"end": 48,
"has_more_after": false,
"has_more_before": false,
"is_binary": false,
"lines": [
"lines-204e",
"lines-f21d"
],
"path": "path-12a1",
"ref": "b4d7c73dbc6eb188f6f3e7d66e4cb2dc12931f71",
"start": 70
}

Graph

Used inside

No schema contains this one.

Contains

No named schema inside.

Used by

Sent by 0 operations

No operation takes it as a request body.