From 145f717df732bf5eb752dd19230f16dd8ce1e614 Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 12 Sep 2026 00:22:00 -0700 Subject: [PATCH] chore(git): drop the now-dead tracked-pathspec re-export --- src/main/git/source-control/discard-changes.ts | 2 +- src/main/git/source-control/git-pathspec.ts | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/git/source-control/discard-changes.ts b/src/main/git/source-control/discard-changes.ts index d162f1d5096..0cf918f729c 100644 --- a/src/main/git/source-control/discard-changes.ts +++ b/src/main/git/source-control/discard-changes.ts @@ -3,11 +3,11 @@ import { removeSafeUntrackedDiscardTarget, removeSafeUntrackedDiscardTargets } from '../../../shared/git-discard-path-safety' +import { partitionTrackedPathSpecs } from '../../../shared/git-tracked-pathspecs' import type { GitRuntimeOptions } from '../git-runtime-options' import { gitOptionsForWorktree } from '../git-runtime-options' import { gitExecFileAsync } from '../runner' import { invalidateGitReadCaches } from './git-read-cache-invalidation' -import { partitionTrackedPathSpecs } from '../../../shared/git-tracked-pathspecs' import { bulkPathspecCommands, literalPathspec } from './git-pathspec' /** diff --git a/src/main/git/source-control/git-pathspec.ts b/src/main/git/source-control/git-pathspec.ts index 34b9670b6d8..382e76f9bb8 100644 --- a/src/main/git/source-control/git-pathspec.ts +++ b/src/main/git/source-control/git-pathspec.ts @@ -16,8 +16,6 @@ const BULK_CHUNK_SIZE = 100 */ const POSIX_COMMAND_LINE_BUDGET = 128_000 -export { isTrackedPathSpec } from '../../../shared/git-tracked-pathspecs' - export function literalPathspec(filePath: string, options: GitRuntimeOptions): string { // Why: Git inside WSL needs POSIX paths, but host paths must stay literal, so convert backslashes only for WSL. const runtimePath = options.wslDistro ? filePath.replace(/\\/g, '/') : filePath