MCPcopy Create free account
hub / github.com/CodeGraphContext/CodeGraphContext / getBranchesToTry

Function getBranchesToTry

website/src/lib/repo-provider.ts:152–154  ·  view source on GitHub ↗
(detectedBranch: string)

Source from the content-addressed store, hash-verified

150}
151
152export function getBranchesToTry(detectedBranch: string): string[] {
153 return Array.from(new Set([detectedBranch, ...DEFAULT_BRANCHES]));
154}
155
156/** Resolve default branch and latest commit SHA for a repository. */
157export async function resolveRepoMetadata(

Callers 1

fetchRepositoryFilesFunction · 0.90

Calls 1

fromMethod · 0.80

Tested by

no test coverage detected