MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getCurrentBranch

Function getCurrentBranch

src/utils/teleport.tsx:287–292  ·  view source on GitHub ↗

* Gets the current branch name

()

Source from the content-addressed store, hash-verified

285 * Gets the current branch name
286 */
287async function getCurrentBranch(): Promise<string> {
288 const {
289 stdout: currentBranch
290 } = await execFileNoThrow(gitExe(), ['branch', '--show-current']);
291 return currentBranch.trim();
292}
293
294/**
295 * Processes messages for teleport resume, removing incomplete tool_use blocks

Callers 1

Calls 1

execFileNoThrowFunction · 0.85

Tested by

no test coverage detected