fix: deduplicate getMainBranch implementations (#994)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
6b3572c858
commit
2687f97a6b
2 changed files with 1 additions and 6 deletions
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
import type { ExtensionAPI, ExtensionCommandContext } from "@gsd/pi-coding-agent";
|
||||
import { loadPrompt } from "./prompt-loader.js";
|
||||
import { autoCommitCurrentBranch } from "./worktree.js";
|
||||
import { autoCommitCurrentBranch, getMainBranch } from "./worktree.js";
|
||||
import { runWorktreePostCreateHook } from "./auto-worktree.js";
|
||||
import { showConfirm } from "../shared/confirm-ui.js";
|
||||
import { gsdRoot, milestonesDir } from "./paths.js";
|
||||
|
|
@ -23,7 +23,6 @@ import {
|
|||
mergeWorktreeToMain,
|
||||
diffWorktreeAll,
|
||||
diffWorktreeNumstat,
|
||||
getMainBranch,
|
||||
getWorktreeGSDDiff,
|
||||
getWorktreeCodeDiff,
|
||||
getWorktreeLog,
|
||||
|
|
|
|||
|
|
@ -70,10 +70,6 @@ function normalizePathForComparison(path: string): string {
|
|||
return process.platform === "win32" ? normalized.toLowerCase() : normalized;
|
||||
}
|
||||
|
||||
export function getMainBranch(basePath: string): string {
|
||||
return nativeDetectMainBranch(basePath);
|
||||
}
|
||||
|
||||
// ─── resolveGitDir ─────────────────────────────────────────────────────────
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue