class WriteReftable extends TextBuiltin
Modifier and Type | Class and Description |
---|---|
private static class |
WriteReftable.LogEntry |
TextBuiltin.TerminatedByHelpException
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
in |
private int |
indexLevels |
private static int |
KIB |
private int |
logBlockSize |
private static int |
MIB |
private boolean |
noIndexObjects |
private java.lang.String |
out |
private int |
refBlockSize |
private java.lang.String |
reflogIn |
private int |
restartInterval |
Constructor and Description |
---|
WriteReftable() |
Modifier and Type | Method and Description |
---|---|
private static long |
max(java.util.List<WriteReftable.LogEntry> log) |
private static long |
min(java.util.List<WriteReftable.LogEntry> log) |
private static ObjectId |
parseId(java.lang.String s) |
private void |
printf(java.lang.String fmt,
java.lang.Object... args) |
private static java.util.List<WriteReftable.LogEntry> |
readLog(java.lang.String logPath) |
(package private) static java.util.List<Ref> |
readRefs(java.lang.String inputFile) |
protected void |
run()
Perform the actions of this command.
|
containsHelp, die, die, die, die, execute, getErrorWriter, getOutputWriter, getRepository, getResourceBundle, init, initRaw, parseArguments, printUsage, printUsageAndExit, printUsageAndExit, requiresRepository
private static final int KIB
private static final int MIB
private int refBlockSize
private int logBlockSize
private int restartInterval
private int indexLevels
private java.lang.String reflogIn
private boolean noIndexObjects
private java.lang.String in
private java.lang.String out
protected 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 printf(java.lang.String fmt, java.lang.Object... args) throws java.io.IOException
java.io.IOException
static java.util.List<Ref> readRefs(java.lang.String inputFile) throws java.io.IOException
java.io.IOException
private static java.util.List<WriteReftable.LogEntry> readLog(java.lang.String logPath) throws java.io.FileNotFoundException, java.io.IOException
java.io.FileNotFoundException
java.io.IOException
private static long min(java.util.List<WriteReftable.LogEntry> log)
private static long max(java.util.List<WriteReftable.LogEntry> log)
private static ObjectId parseId(java.lang.String s)