mirror of
https://github.com/stablyai/orca.git
synced 2026-10-07 16:02:29 +00:00
* fix(worktrees): remove repeated scans and keep prepared checkouts fresh * fix(worktrees): reclaim unlocked fallback preparations safely * refactor(worktrees): simplify creation ownership and idle maintenance * fix(git): keep ref maintenance armed after an index-only pass An idle attempt that found the pack index due but refs still cooling down returned without rescheduling, so loose refs from the arming fetch waited for the next write instead of the ref cooldown.
21 lines
637 B
TypeScript
21 lines
637 B
TypeScript
import { CapabilityProbeCache } from './capability-probe-cache'
|
|
|
|
// Why: suppress hot-loop failures while still detecting an in-place Git
|
|
// upgrade during a long Orca session without requiring a restart.
|
|
export const GIT_CAPABILITY_RETRY_INTERVAL_MS = 30 * 60_000
|
|
|
|
export type GitCapability =
|
|
| 'fetch-no-write-fetch-head'
|
|
| 'for-each-ref-exclude'
|
|
| 'merge-tree-merge-base'
|
|
| 'merge-tree-write-tree'
|
|
| 'rev-parse-path-format'
|
|
| 'worktree-add-lock-reason'
|
|
| 'worktree-list-z'
|
|
|
|
export class GitCapabilityCache extends CapabilityProbeCache<GitCapability> {
|
|
constructor() {
|
|
super(GIT_CAPABILITY_RETRY_INTERVAL_MS)
|
|
}
|
|
}
|