MCPcopy Create free account
hub / github.com/dmno-dev/bumpy / getCurrentBranch

Function getCurrentBranch

packages/bumpy/src/core/git.ts:113–115  ·  view source on GitHub ↗
(opts?: { cwd?: string })

Source from the content-addressed store, hash-verified

111
112/** Get the current branch name */
113export function getCurrentBranch(opts?: { cwd?: string }): string | null {
114 return tryRunArgs(['git', 'rev-parse', '--abbrev-ref', 'HEAD'], opts);
115}
116
117/** Stage files and create a commit */
118export function commitFiles(files: string[], message: string, opts?: { cwd?: string }): void {

Callers 3

git.test.tsFile · 0.90
statusCommandFunction · 0.90
detectReleaseBranchFunction · 0.90

Calls 1

tryRunArgsFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…