mirror of
https://github.com/stablyai/orca.git
synced 2026-09-28 16:02:45 +00:00
chore(git): drop the now-dead tracked-pathspec re-export
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user