MCPcopy Index your code
hub / github.com/coderoad/coderoad-vscode / setupCodeRoadRemote

Function setupCodeRoadRemote

src/services/git/index.ts:151–161  ·  view source on GitHub ↗
(repo: string)

Source from the content-addressed store, hash-verified

149}
150
151export async function setupCodeRoadRemote(repo: string): Promise<never | void> {
152 // check coderoad remote not taken
153 const hasRemote = await checkRemoteExists()
154 // git remote add coderoad tutorial
155 // git fetch coderoad
156 if (hasRemote) {
157 // TODO: verify the remote is the same
158 return
159 }
160 await addRemote(repo)
161}
162
163export async function loadCommitHistory(): Promise<string[]> {
164 try {

Callers

nothing calls this directly

Calls 2

checkRemoteExistsFunction · 0.85
addRemoteFunction · 0.85

Tested by

no test coverage detected