Package org.eclipse.jgit.pgm.debug
Class WriteReftable
- java.lang.Object
-
- org.eclipse.jgit.pgm.TextBuiltin
-
- org.eclipse.jgit.pgm.debug.WriteReftable
-
class WriteReftable extends TextBuiltin
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classWriteReftable.LogEntry-
Nested classes/interfaces inherited from class org.eclipse.jgit.pgm.TextBuiltin
TextBuiltin.TerminatedByHelpException
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringinprivate intindexLevelsprivate static intKIBprivate intlogBlockSizeprivate static intMIBprivate booleannoIndexObjectsprivate java.lang.Stringoutprivate intrefBlockSizeprivate java.lang.StringreflogInprivate intrestartInterval
-
Constructor Summary
Constructors Constructor Description WriteReftable()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static longmax(java.util.List<WriteReftable.LogEntry> log)private static longmin(java.util.List<WriteReftable.LogEntry> log)private static ObjectIdparseId(java.lang.String s)private voidprintf(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 voidrun()Perform the actions of this command.-
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, requiresRepository
-
-
-
-
Field Detail
-
KIB
private static final int KIB
- See Also:
- Constant Field Values
-
MIB
private static final int MIB
- See Also:
- Constant Field Values
-
refBlockSize
private int refBlockSize
-
logBlockSize
private int logBlockSize
-
restartInterval
private int restartInterval
-
indexLevels
private int indexLevels
-
reflogIn
private java.lang.String reflogIn
-
noIndexObjects
private boolean noIndexObjects
-
in
private java.lang.String in
-
out
private java.lang.String out
-
-
Method Detail
-
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.
-
printf
private void printf(java.lang.String fmt, java.lang.Object... args) throws java.io.IOException- Throws:
java.io.IOException
-
readRefs
static java.util.List<Ref> readRefs(java.lang.String inputFile) throws java.io.IOException
- Throws:
java.io.IOException
-
readLog
private static java.util.List<WriteReftable.LogEntry> readLog(java.lang.String logPath) throws java.io.FileNotFoundException, java.io.IOException
- Throws:
java.io.FileNotFoundExceptionjava.io.IOException
-
min
private static long min(java.util.List<WriteReftable.LogEntry> log)
-
max
private static long max(java.util.List<WriteReftable.LogEntry> log)
-
parseId
private static ObjectId parseId(java.lang.String s)
-
-