package com.gitblit.utils; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.OutputStream; import org.eclipse.jgit.diff.RawText; public class GitBlitDiffFormatter extends GitWebDiffFormatter { private final OutputStream os; private int left = 0, right = 0; public GitBlitDiffFormatter(OutputStream os) { super(os); this.os = os; } /** * Output a hunk header * * @param aStartLine * within first source * @param aEndLine * within first source * @param bStartLine * within second source * @param bEndLine * within second source * @throws IOException */ @Override protected void writeHunkHeader(int aStartLine, int aEndLine, int bStartLine, int bEndLine) throws IOException { os.write("