Revert "fix(memory): bound OOM-prone accumulators (#10179)" (#10255)

Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
Neil
2026-07-23 18:35:31 -07:00
committed by GitHub
co-authored by Orca
parent 6eb70d8370
commit aab112933e
1577 changed files with 15167 additions and 91655 deletions
+1 -2
View File
@@ -10,7 +10,6 @@ import * as path from 'node:path'
import { decodeGitCQuotedPath } from '../shared/git-cquoted-path'
import { isBinaryBuffer } from '../shared/binary-buffer'
import type { GitLineStats } from '../shared/git-uncommitted-line-stats'
import { iterateNulDelimitedFields } from '../shared/nul-delimited-fields'
export { isUnsupportedWorktreeListZError } from '../shared/git-worktree-command-capabilities'
export function parseBranchStatusChar(char: string): string {
@@ -210,7 +209,7 @@ function splitNulWorktreeList(output: string): string[][] {
const blocks: string[][] = []
let currentBlock: string[] = []
for (const field of iterateNulDelimitedFields(output)) {
for (const field of output.split('\0')) {
if (field) {
currentBlock.push(field)
continue