MCPcopy Create free account
hub / github.com/Noumena-Network/code / dirIsInGitRepo

Function dirIsInGitRepo

src/utils/git.ts:268–270  ·  view source on GitHub ↗
(cwd: string)

Source from the content-addressed store, hash-verified

266}
267
268export const dirIsInGitRepo = async (cwd: string): Promise<boolean> => {
269 return findGitRoot(cwd) !== null
270}
271
272export const getHead = async (): Promise<string> => {
273 return getCachedHead()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected