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

Function invalidGitRef

packages/web/src/lib/serviceError.ts:114–120  ·  view source on GitHub ↗
(ref: string)

Source from the content-addressed store, hash-verified

112}
113
114export const invalidGitRef = (ref: string): ServiceError => {
115 return {
116 statusCode: StatusCodes.BAD_REQUEST,
117 errorCode: ErrorCode.INVALID_GIT_REF,
118 message: `Invalid git reference: "${ref}". Git refs cannot start with '-'.`,
119 };
120}
121
122export const unresolvedGitRef = (ref: string): ServiceError => {
123 return {

Callers 8

getFileSourceForRepoFunction · 0.90
getFileBlameFunction · 0.90
getDiffFunction · 0.90
listCommitsFunction · 0.90
getTreeFunction · 0.90
getCommitFunction · 0.90
getPathTypeFunction · 0.90
listCommitAuthorsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected