mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-09 22:31:08 +00:00
chore: make GC_CHECKPOINT_THRESHOLD configurable
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
This commit is contained in:
parent
43387b1e2a
commit
4de36f913a
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ export abstract class ShadowCheckpointService extends EventEmitter {
|
|||
// --- CHANGE START: Add cache for nested git repo paths ---
|
||||
// --- ADDITION: GC related properties ---
|
||||
private gcCounter: number = 0
|
||||
private readonly GC_CHECKPOINT_THRESHOLD: number = 20 // Run gc every 20 checkpoints
|
||||
private readonly GC_CHECKPOINT_THRESHOLD: number = Number(process.env.GC_CHECKPOINT_THRESHOLD) || 20 // Run gc every 20 checkpoints
|
||||
private _nestedGitDirPaths: string[] | null = null // Cache for relative paths like "submodule/.git"
|
||||
// --- CHANGE END: Add cache for nested git repo paths ---
|
||||
protected shadowGitConfigWorktree?: string
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue