private String getDiffinGitFormat(String string1, String string2) throws IOException {
ByteArrayOutputStream out = new ByteArrayOutputStream();
RawText rt1 = new RawText(string1.getBytes());
RawText rt2 = new RawText(string2.getBytes());
EditList diffList = new EditList();
diffList.addAll(new HistogramDiff().diff(RawTextComparator.DEFAULT, rt1, rt2));
new DiffFormatter(out).format(diffList, rt1, rt2);
return out.toString();
}