https://qqtim.club/2020/06/14/git-myers-diff/ https://blog.robertelder.org/diff-algorithm/ @param from from blob id @param to to blob id
(String from, String to)
| 83 | * @param to to blob id |
| 84 | */ |
| 85 | private static List<LineObject> diffBlobs(String from, String to) { |
| 86 | final List<LineObject> fromLineObjects = convertObjectContentToLines(from); |
| 87 | final List<LineObject> toLineObjects = convertObjectContentToLines(to); |
| 88 | return diffBlobs(fromLineObjects, toLineObjects); |
| 89 | } |
| 90 | |
| 91 | private static List<LineObject> diffBlobs(List<LineObject> fromLineObjects, List<LineObject> toLineObjects) { |
| 92 | try { |
no test coverage detected