Skip to content
GitmoapAPIBeta
Schema

GrepMatch

One matching line in a content search.

Shape

  • afterarray of stringThe lines just after the match, in file order.
  • beforearray of stringThe lines just before the match, in file order.
  • lineinteger0–∞The line number of the match, counting from 1.
  • pathstringThe file the match is in, relative to the repository root.
  • textstringThe matching line. A very long line is shortened and ends with ….

Example

Synthesized example
{
"after": [
"after-cdc9"
],
"before": [
"before-bdf9"
],
"line": 34,
"path": "path-f94b",
"text": "text-021b"
}

Graph

Used inside
Contains

No named schema inside.

Used by

Sent by 0 operations

No operation takes it as a request body.