diff --git a/src/lib/git.ts b/src/lib/git.ts index a32ee3c..e8e0eb2 100644 --- a/src/lib/git.ts +++ b/src/lib/git.ts @@ -1,6 +1,5 @@ import { execFileSync } from "child_process"; import { PROJECT_DIR } from "./files.js"; -import type { RunError } from "../types.js"; /** * Run a git command safely using execFileSync (no shell injection). @@ -30,11 +29,6 @@ export function run(argsOrCmd: string | string[], opts: { timeout?: number } = { } } -/** Convenience: run a raw command string (split on spaces). Only for simple, known-safe commands. */ -function gitCmd(cmdStr: string, opts?: { timeout?: number }): string { - return run(cmdStr.split(/\s+/), opts); -} - /** Get the current branch name. */ export function getBranch(): string { return run(["branch", "--show-current"]);