MCPcopy Create free account
hub / github.com/decaporg/decap-cms / createPointerFile

Function createPointerFile

packages/decap-cms-lib-util/src/git-lfs.ts:85–91  ·  view source on GitHub ↗
({ size, sha }: PointerFile)

Source from the content-addressed store, hash-verified

83]);
84
85export function createPointerFile({ size, sha }: PointerFile) {
86 return `\
87version https://git-lfs.github.com/spec/v1
88oid sha256:${sha}
89size ${size}
90`;
91}
92
93export async function getPointerFileForMediaFileObj(
94 client: { uploadResource: (pointer: PointerFile, resource: Blob) => Promise<string> },

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected