MCPcopy Create free account
hub / github.com/6pac/SlickGrid / gitCurrentBranchName

Function gitCurrentBranchName

scripts/git-utils.mjs:28–32  ·  view source on GitHub ↗
({ cwd })

Source from the content-addressed store, hash-verified

26 * @returns {Promise<any>}
27 */
28export async function gitCurrentBranchName({ cwd }) {
29 const execArgs = ['branch', '--show-current'];
30 const procRtn = await execAsyncPiped('git', execArgs, { cwd });
31 return procRtn.stdout;
32}
33
34/**
35 * @param {String} tag - tag name

Callers 1

gitPushToCurrentBranchFunction · 0.85

Calls 1

execAsyncPipedFunction · 0.90

Tested by

no test coverage detected