Skip to content
GitmoapAPIBeta
Schema

BlobContent

One file at one commit.

blob_sha, commit_sha and mode are what an editor needs to write the file back: the blob it started from (a later commit names it to say change this, if it is still this), the commit the read resolved to, and the mode to keep.

Shape

  • blob_shaObjectId (string)The file's git object id — what a commit that edits this file sends back as expected_blob_sha.
  • commit_shaCommitHash (string)The commit the requested ref resolved to.
  • contentstring
  • encodingBlobEncodingutf8base64
  • lossybooleantrue when the file is text but not valid UTF-8, and content shows replacement characters where its bytes could not be decoded. Writing such content back would change the file.
  • modeFileMode100644100755120000160000The file's mode at that commit. A symbolic link's content is its target, not a file's text.
  • pathstring
  • sizeinteger · int640–∞
  • truncatedboolean

Example

Synthesized example
{
"blob_sha": "db7f64aa66365e5e68157347dd12fe5bf7f992e8",
"commit_sha": "8f5602ca96c48b1bcf6c434322607ca86aa5ce0e",
"content": "content-3891",
"encoding": "utf8",
"lossy": false,
"mode": "100644",
"path": "path-511b",
"size": 0,
"truncated": false
}

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.