chore(git): drop the now-dead tracked-pathspec re-export

This commit is contained in:
Neil
2026-09-12 19:41:21 -07:00
parent c98acaccda
commit 145f717df7
2 changed files with 1 additions and 3 deletions
@@ -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'
/**
@@ -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