From dff87cc6b65df5109bd2ab787bfdd1eaf1cb1325 Mon Sep 17 00:00:00 2001 From: Jack Felke Date: Wed, 18 Mar 2026 08:47:44 -0700 Subject: [PATCH] chore: remove unused gitCmd function and RunError import in git.ts --- src/lib/git.ts | 6 ------ 1 file changed, 6 deletions(-) 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"]);