MCPcopy Create free account
hub / github.com/cloudflare/computer / readHead

Function readHead

packages/computer/src/git/commit.test.ts:24–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22}
23
24async function readHead(): Promise<{
25 author: { name: string; email: string };
26 committer: { name: string; email: string };
27}> {
28 const oid = await git.resolveRef({ fs: memfs, dir: DIR, ref: "HEAD" });
29 const { commit } = await git.readCommit({ fs: memfs, dir: DIR, oid });
30 return commit;
31}
32
33const isogit = git as unknown as IsomorphicGitCommitClient;
34

Callers 1

commit.test.tsFile · 0.85

Calls 2

readCommitMethod · 0.80
resolveRefMethod · 0.65

Tested by

no test coverage detected