Example usage for Java org.eclipse.jgit.diff DiffFormatter fields, constructors, methods, implement or subclass
The text is from its open source code.
DiffFormatter(OutputStream out) Create a new formatter with a default level of context. |
void | close() Release the internal ObjectReader state. |
void | flush() Flush the underlying output stream of this formatter. |
void | format(List extends DiffEntry> entries) Format a patch script from a list of difference entries. |
void | format(DiffEntry ent) Format a patch script for one file entry. |
String | format(AbbreviatedObjectId id) |
void | format(AnyObjectId a, AnyObjectId b) Format the differences between two trees. |
void | format(RevTree a, RevTree b) Format the differences between two trees. |
void | format(AbstractTreeIterator a, AbstractTreeIterator b) Format the differences between two trees. |
void | format(FileHeader head, RawText a, RawText b) Format a patch script, reusing a previously parsed FileHeader. |
void | format(EditList edits, RawText a, RawText b) Formats a list of edits in unified diff format |
String | getNewPrefix() Get the prefix applied in front of new file paths. |
String | getOldPrefix() Get the prefix applied in front of old file paths. |
RenameDetector | getRenameDetector() Get rename detector |
List | scan(AnyObjectId a, AnyObjectId b) Determine the differences between two trees. |
List | scan(RevTree a, RevTree b) Determine the differences between two trees. |
List | scan(AbstractTreeIterator a, AbstractTreeIterator b) Determine the differences between two trees. |
void | setAbbreviationLength(int count) Change the number of digits to show in an ObjectId. |
void | setBinaryFileThreshold(int threshold) Set maximum file size for text files. |
void | setContext(int lineCount) Change the number of lines of context to display. |
void | setDetectRenames(boolean on) Enable or disable rename detection. |
void | setDiffAlgorithm(DiffAlgorithm alg) Set the algorithm that constructs difference output. |
void | setDiffComparator(RawTextComparator cmp) Set the line equivalence function for text file differences. |
void | setNewPrefix(String prefix) Set the prefix applied in front of new file paths. |
void | setOldPrefix(String prefix) Set the prefix applied in front of old file paths. |
void | setPathFilter(TreeFilter filter) Set the filter to produce only specific paths. |
void | setProgressMonitor(ProgressMonitor pm) Set the progress monitor for long running rename detection. |
void | setRepository(Repository repository) Set the repository the formatter can load object contents from. |
FileHeader | toFileHeader(DiffEntry ent) Creates a org.eclipse.jgit.patch.FileHeader representing the given org.eclipse.jgit.diff.DiffEntry This method does not use the OutputStream associated with this DiffFormatter instance. |