Files
orca/src/shared/git-pathspec-stdin.ts
T
Neil 328caa2160 fix(git): reduce queries and preserve data across execution hosts (#24602)
* fix(git): reduce queries and preserve data across execution hosts

* fix(ci): exercise pinned Git and serialize mobile dependency entrypoints

* fix(relay): preserve fresh diff retries after hung shared reads

* test(git): wait for fetch barrier before canceling preparation

* fix(i18n): describe index-preserving discard in every locale

* fix(git): retain clone diagnostics and allow WSL policy startup

* test(git): refresh default-base and branch-safety fixtures
2026-10-02 18:05:37 -07:00

7 lines
271 B
TypeScript

export function encodeGitPathspecs(pathspecs: readonly string[]): string {
if (pathspecs.some((pathspec) => pathspec.includes('\0'))) {
throw new Error('Git pathspecs cannot contain NUL bytes')
}
return pathspecs.length > 0 ? `${pathspecs.join('\0')}\0` : ''
}