MCPcopy Index your code
hub / github.com/sourcebot-dev/sourcebot / getBranches

Function getBranches

packages/backend/src/git.ts:329–335  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

327};
328
329export const getBranches = async (path: string) => {
330 return getSortedRefs({
331 path,
332 sort: "-committerdate",
333 refNamespace: "refs/heads",
334 });
335};
336
337export const getTags = async (path: string) => {
338 return getSortedRefs({

Callers 2

indexRepositoryMethod · 0.85
git.test.tsFile · 0.85

Calls 1

getSortedRefsFunction · 0.85

Tested by

no test coverage detected