0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-02-21 22:18:23 +01:00
gitea/services
silverwind dbb8312ff3
DRY blob excerpt: unified single/batch path, single-pass highlighting
- 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>
2026-02-20 13:08:24 +01:00
..
2026-01-31 22:01:08 -08:00
2026-01-24 05:11:49 +00:00
2025-10-19 00:37:50 +08:00
2026-01-31 22:01:08 -08:00