MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / getCurrentBranch

Function getCurrentBranch

src/commands/commit.ts:46–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44};
45
46const getCurrentBranch = async (): Promise<string> => {
47 const { stdout } = await execa('git', ['branch', '--show-current']);
48 return stdout.trim();
49};
50
51const displayPushUrl = (stderr: string) => {
52 const urlMatch = stderr.match(/https?:\/\/\S+/);

Callers 1

Calls 2

execaFunction · 0.85
trimMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…