Text diff
Config, copy or code — first see exactly which lines changed.
Algorithm
Line-by-line comparison uses the longest common subsequence (LCS), so it finds the "smallest set of changes" instead of simply aligning by line number. Even a few thousand lines are fast.