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

Function createPointerFile

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

Source from the content-addressed store, hash-verified

91]);
92
93export function createPointerFile({ size, sha }: PointerFile) {
94 return `\
95version https://git-lfs.github.com/spec/v1
96oid sha256:${sha}
97size ${size}
98`;
99}
100
101export async function getPointerFileForMediaFileObj(
102 client: { uploadResource: (pointer: PointerFile, resource: Blob) => Promise<string> },

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected