MCPcopy
hub / github.com/di-sukharev/opencommit / getCurrentBranchName

Function getCurrentBranchName

test/e2e/utils.ts:292–295  ·  view source on GitHub ↗
(gitDir: string)

Source from the content-addressed store, hash-verified

290};
291
292export const getCurrentBranchName = async (gitDir: string): Promise<string> => {
293 const { stdout } = await runGit(['branch', '--show-current'], gitDir);
294 return stdout.trim();
295};
296
297export const getRemoteBranchHeadSubject = async (
298 remoteGitDir: string,

Callers 2

gitPush.test.tsFile · 0.90
oneFile.test.tsFile · 0.90

Calls 2

runGitFunction · 0.85
trimMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…