Example usage for org.eclipse.jgit.diff HistogramDiff setFallbackAlgorithm

List of usage examples for org.eclipse.jgit.diff HistogramDiff setFallbackAlgorithm

Introduction

In this page you can find the example usage for org.eclipse.jgit.diff HistogramDiff setFallbackAlgorithm.

Prototype

public void setFallbackAlgorithm(DiffAlgorithm alg) 

Source Link

Document

Set the algorithm used when there are too many element occurrences.

Usage

From source file:com.google.gerrit.server.patch.PatchListLoader.java

License:Apache License

private FileHeader toFileHeaderWithoutMyersDiff(DiffFormatter diffFormatter, DiffEntry diffEntry)
        throws IOException {
    HistogramDiff histogramDiff = new HistogramDiff();
    histogramDiff.setFallbackAlgorithm(null);
    diffFormatter.setDiffAlgorithm(histogramDiff);
    return diffFormatter.toFileHeader(diffEntry);
}