MCPcopy Index your code
hub / github.com/ReZeroS/git / diffBlobs

Method diffBlobs

src/main/java/club/qqtim/diff/DiffUtil.java:85–89  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 {

Callers 2

diffTreesMethod · 0.95
mergeBlobsMethod · 0.95

Calls 4

errorMethod · 0.80
diffMethod · 0.65
toStringMethod · 0.45

Tested by

no test coverage detected