public class PatchIdDiffFormatter extends DiffFormatter
Constructor and Description |
---|
PatchIdDiffFormatter()
Initialize a formatter to compute a patch id.
|
Modifier and Type | Method and Description |
---|---|
protected void |
formatIndexLine(OutputStream o,
DiffEntry ent)
Format index line
|
ObjectId |
getCalulatedPatchId()
Should be called after having called one of the format methods
|
protected void |
writeHunkHeader(int aStartLine,
int aEndLine,
int bStartLine,
int bEndLine)
Output a hunk header
|
close, flush, format, format, format, format, format, format, format, formatGitDiffFirstHeaderLine, getNewPrefix, getOldPrefix, getOutputStream, getPathFilter, getRenameDetector, isDetectRenames, scan, scan, scan, setAbbreviationLength, setBinaryFileThreshold, setContext, setDetectRenames, setDiffAlgorithm, setDiffComparator, setNewPrefix, setOldPrefix, setPathFilter, setProgressMonitor, setReader, setRepository, toFileHeader, writeAddedLine, writeContextLine, writeLine, writeRemovedLine
public PatchIdDiffFormatter()
public ObjectId getCalulatedPatchId()
protected void writeHunkHeader(int aStartLine, int aEndLine, int bStartLine, int bEndLine) throws IOException
writeHunkHeader
in class DiffFormatter
aStartLine
- within first sourceaEndLine
- within first sourcebStartLine
- within second sourcebEndLine
- within second sourceIOException
protected void formatIndexLine(OutputStream o, DiffEntry ent) throws IOException
formatIndexLine
in class DiffFormatter
o
- the stream the formatter will write line data toent
- the DiffEntry to create the FileHeader forIOException
- writing to the supplied stream failed.Copyright © 2019 Eclipse JGit Project. All rights reserved.