Java org.eclipse.jgit.diff DiffFormatter fields, constructors, methods, implement or subclass

Example usage for Java org.eclipse.jgit.diff DiffFormatter fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.eclipse.jgit.diff DiffFormatter.

The text is from its open source code.

Subclass

org.eclipse.jgit.diff.DiffFormatter has subclasses.
Click this link to see all its subclasses.

Constructor

DiffFormatter(OutputStream out)
Create a new formatter with a default level of context.

Method

voidclose()

Release the internal ObjectReader state.

voidflush()
Flush the underlying output stream of this formatter.
voidformat(List entries)
Format a patch script from a list of difference entries.
voidformat(DiffEntry ent)
Format a patch script for one file entry.
Stringformat(AbbreviatedObjectId id)
voidformat(AnyObjectId a, AnyObjectId b)
Format the differences between two trees.
voidformat(RevTree a, RevTree b)
Format the differences between two trees.
voidformat(AbstractTreeIterator a, AbstractTreeIterator b)
Format the differences between two trees.
voidformat(FileHeader head, RawText a, RawText b)
Format a patch script, reusing a previously parsed FileHeader.
voidformat(EditList edits, RawText a, RawText b)
Formats a list of edits in unified diff format
StringgetNewPrefix()
Get the prefix applied in front of new file paths.
StringgetOldPrefix()
Get the prefix applied in front of old file paths.
RenameDetectorgetRenameDetector()
Get rename detector
Listscan(AnyObjectId a, AnyObjectId b)
Determine the differences between two trees.
Listscan(RevTree a, RevTree b)
Determine the differences between two trees.
Listscan(AbstractTreeIterator a, AbstractTreeIterator b)
Determine the differences between two trees.
voidsetAbbreviationLength(int count)
Change the number of digits to show in an ObjectId.
voidsetBinaryFileThreshold(int threshold)
Set maximum file size for text files.
voidsetContext(int lineCount)
Change the number of lines of context to display.
voidsetDetectRenames(boolean on)
Enable or disable rename detection.
voidsetDiffAlgorithm(DiffAlgorithm alg)
Set the algorithm that constructs difference output.
voidsetDiffComparator(RawTextComparator cmp)
Set the line equivalence function for text file differences.
voidsetNewPrefix(String prefix)
Set the prefix applied in front of new file paths.
voidsetOldPrefix(String prefix)
Set the prefix applied in front of old file paths.
voidsetPathFilter(TreeFilter filter)
Set the filter to produce only specific paths.
voidsetProgressMonitor(ProgressMonitor pm)
Set the progress monitor for long running rename detection.
voidsetRepository(Repository repository)
Set the repository the formatter can load object contents from.
FileHeadertoFileHeader(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.