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 class
DiffAlgorithms.Algorithm
private static class
DiffAlgorithms.Run
private static class
DiffAlgorithms.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>
algorithms
private RawTextComparator
cmp
(package private) int
count
(package private) java.util.List<java.io.File>
gitDirs
(package private) DiffAlgorithms.Algorithm
histogram
(package private) DiffAlgorithms.Algorithm
histogram_myers
private static int
minCPUTimerTicks
private java.lang.management.ThreadMXBean
mxBean
(package private) DiffAlgorithms.Algorithm
myers
(package private) int
textLimit
-
Constructor Summary
Constructors Constructor Description DiffAlgorithms()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static boolean
included(java.lang.String name, java.util.List<java.lang.String> want)
private java.util.List<DiffAlgorithms.Test>
init()
private static boolean
isFile(TreeWalk tw, int ithTree)
protected boolean
requiresRepository()
If this command requires a repository.protected void
run()
Perform the actions of this command.private void
run(Repository repo)
private void
testOne(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:
requiresRepository
in classTextBuiltin
- Returns:
- true if
TextBuiltin.db
/TextBuiltin.getRepository()
is required
-
run
protected void run() throws java.lang.Exception
Perform the actions of this command.This method should only be invoked by
TextBuiltin.execute(String[])
.- Specified by:
run
in 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)
-
-