Package org.eclipse.jgit.pgm.debug
Class DiffAlgorithms
- java.lang.Object
-
- org.eclipse.jgit.pgm.TextBuiltin
-
- org.eclipse.jgit.pgm.debug.DiffAlgorithms
-
class DiffAlgorithms extends TextBuiltin
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classDiffAlgorithms.Algorithmprivate static classDiffAlgorithms.Runprivate static classDiffAlgorithms.Test-
Nested classes/interfaces inherited from class org.eclipse.jgit.pgm.TextBuiltin
TextBuiltin.TerminatedByHelpException
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.List<java.lang.String>algorithmsprivate RawTextComparatorcmp(package private) intcount(package private) java.util.List<java.io.File>gitDirs(package private) DiffAlgorithms.Algorithmhistogram(package private) DiffAlgorithms.Algorithmhistogram_myersprivate static intminCPUTimerTicksprivate java.lang.management.ThreadMXBeanmxBean(package private) DiffAlgorithms.Algorithmmyers(package private) inttextLimit
-
Constructor Summary
Constructors Constructor Description DiffAlgorithms()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static booleanincluded(java.lang.String name, java.util.List<java.lang.String> want)private java.util.List<DiffAlgorithms.Test>init()private static booleanisFile(TreeWalk tw, int ithTree)protected booleanrequiresRepository()If this command requires a repository.protected voidrun()Perform the actions of this command.private voidrun(Repository repo)private voidtestOne(DiffAlgorithms.Test test, RawText a, RawText b)-
Methods inherited from class org.eclipse.jgit.pgm.TextBuiltin
containsHelp, die, die, die, die, execute, getErrorWriter, getOutputWriter, getRepository, getResourceBundle, init, initRaw, parseArguments, printUsage, printUsageAndExit, printUsageAndExit
-
-
-
-
Field Detail
-
myers
final DiffAlgorithms.Algorithm myers
-
histogram
final DiffAlgorithms.Algorithm histogram
-
histogram_myers
final DiffAlgorithms.Algorithm histogram_myers
-
algorithms
java.util.List<java.lang.String> algorithms
-
textLimit
int textLimit
-
gitDirs
java.util.List<java.io.File> gitDirs
-
count
int count
-
cmp
private final RawTextComparator cmp
-
mxBean
private java.lang.management.ThreadMXBean mxBean
-
minCPUTimerTicks
private static final int minCPUTimerTicks
- See Also:
- Constant Field Values
-
-
Method Detail
-
requiresRepository
protected boolean requiresRepository()
If this command requires a repository.- Overrides:
requiresRepositoryin classTextBuiltin- Returns:
- true if
TextBuiltin.db/TextBuiltin.getRepository()is required
-
run
protected void run() throws java.lang.ExceptionPerform the actions of this command.This method should only be invoked by
TextBuiltin.execute(String[]).- Specified by:
runin classTextBuiltin- Throws:
java.lang.Exception- an error occurred while processing the command. The main framework will catch the exception and print a message on standard error.
-
run
private void run(Repository repo) throws java.lang.Exception
- Throws:
java.lang.Exception
-
isFile
private static boolean isFile(TreeWalk tw, int ithTree)
-
testOne
private void testOne(DiffAlgorithms.Test test, RawText a, RawText b)
-
init
private java.util.List<DiffAlgorithms.Test> init()
-
included
private static boolean included(java.lang.String name, java.util.List<java.lang.String> want)
-
-