MCPcopy
hub / github.com/claude-code-best/claude-code / getBranch

Function getBranch

src/utils/git.ts:261–263  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

259}
260
261export const getBranch = async (): Promise<string> => {
262 return getCachedBranch()
263}
264
265export const getDefaultBranch = async (): Promise<string> => {
266 return getCachedDefaultBranch()

Callers 12

context.tsFile · 0.85
runFunction · 0.85
LogSelectorFunction · 0.85
BridgeDialogFunction · 0.85
getGitStateFunction · 0.85
insertMessageChainMethod · 0.85
createWorktreeForSessionFunction · 0.85
fetchPrStatusFunction · 0.85
initReplBridgeFunction · 0.85
bridgeMainFunction · 0.85
runBridgeHeadlessFunction · 0.85
getVoiceKeytermsFunction · 0.85

Calls 1

getCachedBranchFunction · 0.85

Tested by

no test coverage detected