MCPcopy Create free account
hub / github.com/agent-tower/core / constructor

Method constructor

packages/server/src/git/git-cli.ts:119–127  ·  view source on GitHub ↗
(taskBranch: string, baseBranch: string, ahead: number, behind: number)

Source from the content-addressed store, hash-verified

117 constructor(taskBranch: string, baseBranch: string, ahead: number, behind: number) {
118 super(
119 `Branch '${taskBranch}' has diverged from '${baseBranch}' (ahead: ${ahead}, behind: ${behind}). Rebase or update before merging.`,
120 'BRANCHES_DIVERGED'
121 );
122 this.name = 'BranchesDivergedError';
123 this.ahead = ahead;
124 this.behind = behind;
125 }
126}
127
128// ─── Git CLI Wrapper ──────────────────────────────────────────────────────────
129
130export interface ExecGitOptions {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected