mirror of
https://github.com/go-gitea/gitea.git
synced 2026-02-22 15:25:05 +01:00
- Merge ExcerptBlob and excerptBlobBatch into a single unified flow that handles both single and batch requests without duplicated code - Extract parseBatchBlobExcerptOptions to DRY the repetitive splitInts calls - Refactor BuildBlobExcerptDiffSection to separate section building from highlighting, enabling BuildBlobExcerptDiffSections (plural) to highlight the file content only once for all sections instead of N times - Add blob size limit check (MaxDisplayFileSize) before io.ReadAll to prevent OOM on large files Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>