DiffFileSummary
One changed file, without its patch: what it is called, what happened to it, and how much.
Shape
- additionsinteger0–∞
- deletionsinteger0–∞
- generatedbooleanLooks generated — a lock file, a minified bundle, a snapshot — judged from the path. A page read with patches also honours the repository's
.gitattributes. - is_binarybooleanA binary file: it has no line counts and no patch.
- pathstring
- statusDiffFileStatusaddedmodifieddeletedrenamedcopied
- old_pathstring or nulloptionalThe file's previous path, for a rename or copy. Pass it as
old_pathwhen reading the file's own diff, or a renamed file reads as the whole file added.
Example
Synthesized example{
"additions": 18,
"deletions": 47,
"generated": false,
"is_binary": false,
"path": "path-1cc3",
"status": "added",
"old_path": "old-path-8cf8"
}
Graph
Used inside
Contains
No named schema inside.
Used by
Sent by 0 operations
No operation takes it as a request body.
Returned by 1 operation