Top Inners Fields Constructors Methods
org.eclipse.jgit.pgm.debug

pack-priv Class DiffAlgorithms

extends TextBuiltin
Class Inheritance
Annotations
@Command
usage:usage_DiffAlgorithms
Imports
java.io.File, java.lang.management.ManagementFactory, .ThreadMXBean, java.lang.reflect.Field, java.util.ArrayList, .Collections, .List, org.eclipse.jgit.diff.DiffAlgorithm, .HistogramDiff, .MyersDiff, .RawText, .RawTextComparator, org.eclipse.jgit.errors.LargeObjectException, org.eclipse.jgit.lib.AbbreviatedObjectId, .Constants, .FileMode, .MutableObjectId, .ObjectId, .ObjectReader, .Repository, .RepositoryBuilder, .RepositoryCache, org.eclipse.jgit.pgm.Command, .TextBuiltin, org.eclipse.jgit.pgm.internal.CLIText, org.eclipse.jgit.revwalk.RevCommit, .RevWalk, org.eclipse.jgit.treewalk.TreeWalk, org.eclipse.jgit.treewalk.filter.TreeFilter, org.eclipse.jgit.util.FS, org.kohsuke.args4j.Option

Nested and Inner Type Summary

Modifier and TypeClass and Description
private abstract static class
private static class
private static class

Field Summary

Modifier and TypeField and Description
pack-priv List<String>
private final RawTextComparator
pack-priv int
pack-priv List<File>
pack-priv final DiffAlgorithms.Algorithm
pack-priv final DiffAlgorithms.Algorithm
private static final int
private ThreadMXBean
pack-priv final DiffAlgorithms.Algorithm
pack-priv int
Inherited from org.eclipse.jgit.pgm.TextBuiltin:
argWalkdberrserrwgitdirinsoutsoutw

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private static boolean
included(String name, List<String> want)

private List<DiffAlgorithms.Test>
init()

private static boolean
isFile(TreeWalk tw, int ithTree)

protected boolean
requiresRepository()

Overrides org.eclipse.jgit.pgm.TextBuiltin.requiresRepository.

If this command requires a repository.

protected void
run()

Implements abstract org.eclipse.jgit.pgm.TextBuiltin.run.

Perform the actions of this command.

private void
private void
Inherited from org.eclipse.jgit.pgm.TextBuiltin:
containsHelpdiediediedieexecutegetErrorWritergetOutputWritergetRepositorygetResourceBundleinitinitRawparseArgumentsprintUsageprintUsageAndExitprintUsageAndExit

Field Detail

algorithmsback to summary
pack-priv List<String> algorithms
Annotations
@Option
name:--algorithm
metaVar:NAME
usage:Enable algorithm(s)
cmpback to summary
private final RawTextComparator cmp
countback to summary
pack-priv int count
Annotations
@Option
name:--count
metaVar:LIMIT
usage:Number of file revisions to be compared
gitDirsback to summary
pack-priv List<File> gitDirs
Annotations
@Option
name:--repository
aliases:-r
metaVar:GIT_DIR
usage:Repository to scan
histogramback to summary
pack-priv final DiffAlgorithms.Algorithm histogram
histogram_myersback to summary
pack-priv final DiffAlgorithms.Algorithm histogram_myers
minCPUTimerTicksback to summary
private static final int minCPUTimerTicks
mxBeanback to summary
private ThreadMXBean mxBean
myersback to summary
pack-priv final DiffAlgorithms.Algorithm myers
textLimitback to summary
pack-priv int textLimit
Annotations
@Option
name:--text-limit
metaVar:LIMIT
usage:Maximum size in KiB to scan per file revision

Constructor Detail

DiffAlgorithmsback to summary
pack-priv DiffAlgorithms()

Method Detail

includedback to summary
private static boolean included(String name, List<String> want)
initback to summary
private List<DiffAlgorithms.Test> init()
isFileback to summary
private static boolean isFile(TreeWalk tw, int ithTree)
requiresRepositoryback to summary
protected boolean requiresRepository()

Overrides org.eclipse.jgit.pgm.TextBuiltin.requiresRepository.

Doc from org.eclipse.jgit.pgm.TextBuiltin.requiresRepository.

If this command requires a repository.

Returns:boolean

true if db/getRepository() is required

Annotations
@Override
runback to summary
protected void run() throws Exception

Implements abstract org.eclipse.jgit.pgm.TextBuiltin.run.

Doc from org.eclipse.jgit.pgm.TextBuiltin.run.

Perform the actions of this command.

This method should only be invoked by execute(String[]).

Annotations
@Override
Exceptions
Exception:
an error occurred while processing the command. The main framework will catch the exception and print a message on standard error.
runback to summary
private void run(Repository repo) throws Exception
testOneback to summary
private void testOne(DiffAlgorithms.Test test, RawText a, RawText b)
org.eclipse.jgit.pgm.debug back to summary

private abstract Class DiffAlgorithms.Algorithm

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv String

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv abstract DiffAlgorithm
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

nameback to summary
pack-priv String name

Constructor Detail

Algorithmback to summary
private Algorithm()

Method Detail

createback to summary
pack-priv abstract DiffAlgorithm create()
org.eclipse.jgit.pgm.debug back to summary

private Class DiffAlgorithms.Run

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv int
n

pack-priv long

Constructor Summary

AccessConstructor and Description
private
Run()

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

nback to summary
pack-priv int n
runningTimeNanosback to summary
pack-priv long runningTimeNanos

Constructor Detail

Runback to summary
private Run()
org.eclipse.jgit.pgm.debug back to summary

private Class DiffAlgorithms.Test

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv DiffAlgorithms.Algorithm
pack-priv DiffAlgorithms.Run
pack-priv DiffAlgorithms.Run
pack-priv long

Constructor Summary

AccessConstructor and Description
private
Test()

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

algorithmback to summary
pack-priv DiffAlgorithms.Algorithm algorithm
maxNback to summary
pack-priv DiffAlgorithms.Run maxN
minNback to summary
pack-priv DiffAlgorithms.Run minN
runningTimeNanosback to summary
pack-priv long runningTimeNanos

Constructor Detail

Testback to summary
private Test()