MCPcopy Index your code
hub / github.com/anomalyco/opencode / rootCommit

Function rootCommit

packages/core/test/project.test.ts:37–39  ·  view source on GitHub ↗
(dir: string)

Source from the content-addressed store, hash-verified

35}
36
37async function rootCommit(dir: string) {
38 return (await $`git rev-list --max-parents=0 HEAD`.cwd(dir).text()).trim()
39}
40
41describe("ProjectV2.resolve", () => {
42 it.live("returns global for non-git directory", () =>

Callers 1

project.test.tsFile · 0.85

Calls 2

textMethod · 0.65
cwdMethod · 0.65

Tested by

no test coverage detected