mirror of
https://github.com/stablyai/orca.git
synced 2026-11-14 01:47:24 +00:00
* [comment audit] Shorten daemon, hook, and emulator comments [skip ci] * [comment audit] Shorten VM, conversation, SQLite, and theme-import comments [skip ci] * [comment audit] Tighten Git execution and source-control comment contracts [skip ci] * [comment audit] Clarify repository probes and maintenance comments [skip ci] * [comment audit] Shorten status, diff-cache, and checkout comments [skip ci] * [comment audit] Clarify worktree lifecycle and WSL routing comments [skip ci] * [comment audit] Shorten forge identity and review-refresh comments [skip ci] * [comment audit] Tighten hosted-review client comment contracts [skip ci] * [comment audit] Clarify GitLab compatibility and review comments [skip ci] * [comment audit] Tighten hook ownership and watchdog rationale [skip ci] * [comment audit] Condense host and integration compatibility comments [skip ci] * [comment audit] Clarify IPC authority and remote-routing rationale [skip ci] * [comment audit] Finalize file-import and containment comment cleanup * [comment audit] Fix stale Jira type imports blocking full CI --------- Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
34 lines
1002 B
TypeScript
34 lines
1002 B
TypeScript
import type { GitAdmissionTier } from './command-runner/git-exec-options'
|
|
|
|
export type GitRuntimeOptions = {
|
|
wslDistro?: string
|
|
signal?: AbortSignal
|
|
admissionTier?: GitAdmissionTier
|
|
}
|
|
|
|
export function gitOptionsForWorktree(
|
|
cwd: string,
|
|
options: GitRuntimeOptions = {}
|
|
): { cwd: string; wslDistro?: string; signal?: AbortSignal; admissionTier?: GitAdmissionTier } {
|
|
return {
|
|
cwd,
|
|
...(options.wslDistro ? { wslDistro: options.wslDistro } : {}),
|
|
...(options.signal ? { signal: options.signal } : {}),
|
|
...(options.admissionTier ? { admissionTier: options.admissionTier } : {})
|
|
}
|
|
}
|
|
|
|
/** Explicit read callers may use shell-free WSL without relying on argv classification. */
|
|
export function gitReadOptionsForWorktree(
|
|
cwd: string,
|
|
options: GitRuntimeOptions = {}
|
|
): {
|
|
cwd: string
|
|
wslDistro?: string
|
|
signal?: AbortSignal
|
|
admissionTier?: GitAdmissionTier
|
|
preferWslDirectGit: true
|
|
} {
|
|
return { ...gitOptionsForWorktree(cwd, options), preferWslDirectGit: true }
|
|
}
|