mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-10-30 16:50:47 +08:00
The patch badge only needs insertions/deletions, but the full diff endpoint builds every hunk and loads every changed blob. This favours speed over exactness: `git diff --numstat` does not do the rename/copy detection radicle-surf does, so on patches with copied or renamed files the badge can diverge slightly from the full diff view. In return it is roughly 6x faster on small diffs and 15x on large ones.