MCPcopy Index your code
hub / github.com/code-forge-io/react-router-devtools / buildBranch

Function buildBranch

docs/scripts/generate-docs.ts:142–150  ·  view source on GitHub ↗
(branch: string, labelForOutDir: string)

Source from the content-addressed store, hash-verified

140}
141
142function buildBranch(branch: string, labelForOutDir: string) {
143 run(`git fetch --tags --prune origin ${branch}`, {
144 cwd: currentDocsWorkspace,
145 inherit: true,
146 });
147 const localRef = `refs/heads/${branch}`;
148 const targetRef = hasLocalRef(localRef) ? localRef : `origin/${branch}`;
149 return buildRef(targetRef, labelForOutDir);
150}
151
152function buildTag(tag: string) { return buildRef(`refs/tags/${tag}`, tag); }
153

Callers 1

generate-docs.tsFile · 0.85

Calls 3

runFunction · 0.85
hasLocalRefFunction · 0.85
buildRefFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…