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

Function hasUpstreamBranch

out/cli.cjs:85747–85759  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85745};
85746
85747// src/commands/commit.ts
85748var config6 = getConfig();
85749var getGitRemotes = async () => {
85750 const { stdout } = await execa("git", ["remote"]);
85751 return stdout.split("\n").filter((remote) => Boolean(remote.trim()));
85752};
85753var hasUpstreamBranch = async () => {
85754 try {
85755 await execa("git", [
85756 "rev-parse",
85757 "--abbrev-ref",
85758 "--symbolic-full-name",
85759 "@{u}"
85760 ]);
85761 return true;
85762 } catch {

Callers 1

Calls 1

execaFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…