(file: string, patch: string, total: number)
| 142 | }) |
| 143 | |
| 144 | const totalPatch = (file: string, patch: string, total: number) => { |
| 145 | if (total + Buffer.byteLength(patch) <= MAX_TOTAL_PATCH_BYTES) return { patch, capped: false } |
| 146 | return { patch: emptyPatch(file), capped: true } |
| 147 | } |
| 148 | |
| 149 | const patchForItem = Effect.fnUntraced(function* ( |
| 150 | git: Git.Interface, |