choiminyeong 3c17476e92 Implement TASK-009: commit history and diff read-only API contracts
Implemented directly at human product owner's direction, independent
of Codex's separate uncommitted attempt at the same task (not read or
referenced here).

- CommitDetail (reusing CommitSummary) with per-file added/modified/
  deleted/renamed/other status; deleted-author and missing-rename-path
  cases handled without crashing or inventing data.
- BoundedPatch for commit and comparison diffs, sourced from Gitea's
  .diff raw-text endpoints (JSON commit/compare objects only carry
  file status, not diff content); byte limit then line limit, both
  constructor-injected and validated positive.
- Comparison uses one combined base...head path segment, built by
  concatenating both refs before a single addPathSegment call so each
  is escaped exactly once; pagination computed locally since Gitea's
  compare endpoint has no server-side paging.
- Reuses Page<T> and ApiFailure; no put/delete/postForm call anywhere
  in the file (read-only, as required).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-26 14:17:54 +09:00
..