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 class
WriteReftable.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.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 Summary
Constructors Constructor Description WriteReftable()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
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.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.
-
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.FileNotFoundException
java.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)
-
-