public LinkedList < Patch > patch_make ( LinkedList < Diff > diffs ) { if ( diffs == null ) { throw new IllegalArgumentException ( "Null inputs. (patch_make)" ) ; } // No origin string provided, compute our own. String text1 = diff_text1 ( diffs ) ; return patch_make ( text1 , diffs ) ; }
Compute a list of patches to turn text1 into text2 . text1 will be derived from the provided diffs .