class DiffAlgorithms extends TextBuiltin
Modifier and Type | Class and Description |
---|---|
private static class |
DiffAlgorithms.Algorithm |
private static class |
DiffAlgorithms.Run |
private static class |
DiffAlgorithms.Test |
TextBuiltin.TerminatedByHelpException
Modifier and Type | Field and 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 and Description |
---|
DiffAlgorithms() |
Modifier and Type | Method and 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) |
containsHelp, die, die, die, die, execute, getErrorWriter, getOutputWriter, getRepository, getResourceBundle, init, initRaw, parseArguments, printUsage, printUsageAndExit, printUsageAndExit
final DiffAlgorithms.Algorithm myers
final DiffAlgorithms.Algorithm histogram
final DiffAlgorithms.Algorithm histogram_myers
java.util.List<java.lang.String> algorithms
int textLimit
java.util.List<java.io.File> gitDirs
int count
private final RawTextComparator cmp
private java.lang.management.ThreadMXBean mxBean
private static final int minCPUTimerTicks
protected boolean requiresRepository()
requiresRepository
in class TextBuiltin
TextBuiltin.db
/TextBuiltin.getRepository()
is requiredprotected void run() throws java.lang.Exception
This method should only be invoked by TextBuiltin.execute(String[])
.
run
in class TextBuiltin
java.lang.Exception
- an error occurred while processing the command. The main
framework will catch the exception and print a message on
standard error.private void run(Repository repo) throws java.lang.Exception
java.lang.Exception
private static boolean isFile(TreeWalk tw, int ithTree)
private void testOne(DiffAlgorithms.Test test, RawText a, RawText b)
private java.util.List<DiffAlgorithms.Test> init()
private static boolean included(java.lang.String name, java.util.List<java.lang.String> want)