Top Inners Fields Constructors Methods
org.eclipse.jgit.pgm.debug

pack-priv Class WriteReftable

extends TextBuiltin
Class Inheritance
Annotations
@Command
Static Imports
java.nio.charset.StandardCharsets.UTF_8, org.eclipse.jgit.lib.Constants.HEAD, .Constants.MASTER, .Constants.R_HEADS, .Ref.Storage.NEW, .Ref.Storage.PACKED

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private String
private int
private static final int
private int
private static final int
private boolean
private String
private int
private String
private int
Inherited from org.eclipse.jgit.pgm.TextBuiltin:
argWalkdberrserrwgitdirinsoutsoutw

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private static long
private static long
private static ObjectId
private void
printf(String fmt, Object... args)

private static List<WriteReftable.LogEntry>
readLog(String logPath)

pack-priv static List<Ref>
readRefs(String inputFile)

protected void
run()

Implements abstract org.eclipse.jgit.pgm.TextBuiltin.run.

Perform the actions of this command.

Inherited from org.eclipse.jgit.pgm.TextBuiltin:
containsHelpdiediediedieexecutegetErrorWritergetOutputWritergetRepositorygetResourceBundleinitinitRawparseArgumentsprintUsageprintUsageAndExitprintUsageAndExitrequiresRepository

Field Detail

inback to summary
private String in
Annotations
@Argument
index:0
indexLevelsback to summary
private int indexLevels
Annotations
@Option
name:--index-levels
KIBback to summary
private static final int KIB
logBlockSizeback to summary
private int logBlockSize
Annotations
@Option
name:--log-block-size
MIBback to summary
private static final int MIB
noIndexObjectsback to summary
private boolean noIndexObjects
Annotations
@Option
name:--no-index-objects
outback to summary
private String out
Annotations
@Argument
index:1
refBlockSizeback to summary
private int refBlockSize
Annotations
@Option
name:--block-size
reflogInback to summary
private String reflogIn
Annotations
@Option
name:--reflog-in
restartIntervalback to summary
private int restartInterval
Annotations
@Option
name:--restart-interval

Constructor Detail

WriteReftableback to summary
pack-priv WriteReftable()

Method Detail

maxback to summary
private static long max(List<WriteReftable.LogEntry> log)
minback to summary
private static long min(List<WriteReftable.LogEntry> log)
parseIdback to summary
private static ObjectId parseId(String s)
printfback to summary
private void printf(String fmt, Object... args) throws IOException
readLogback to summary
private static List<WriteReftable.LogEntry> readLog(String logPath) throws FileNotFoundException, IOException
readRefsback to summary
pack-priv static List<Ref> readRefs(String inputFile) throws IOException
runback to summary
protected void run() throws Exception

Implements abstract org.eclipse.jgit.pgm.TextBuiltin.run.

Doc from org.eclipse.jgit.pgm.TextBuiltin.run.

Perform the actions of this command.

This method should only be invoked by execute(String[]).

Annotations
@SuppressWarnings:nls, boxing
@Override
Exceptions
Exception:
an error occurred while processing the command. The main framework will catch the exception and print a message on standard error.
org.eclipse.jgit.pgm.debug back to summary

private Class WriteReftable.LogEntry

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv final String
pack-priv final ObjectId
pack-priv final ObjectId
pack-priv final String
pack-priv final long
pack-priv final PersonIdent

Constructor Summary

AccessConstructor and Description
pack-priv
LogEntry(String ref, long updateIndex, PersonIdent who, ObjectId oldId, ObjectId newId, String message)

Method Summary

Modifier and TypeMethod and Description
pack-priv static int
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

messageback to summary
pack-priv final String message
newIdback to summary
pack-priv final ObjectId newId
oldIdback to summary
pack-priv final ObjectId oldId
refback to summary
pack-priv final String ref
updateIndexback to summary
pack-priv final long updateIndex
whoback to summary
pack-priv final PersonIdent who

Constructor Detail

LogEntryback to summary
pack-priv LogEntry(String ref, long updateIndex, PersonIdent who, ObjectId oldId, ObjectId newId, String message)

Method Detail

compareback to summary
pack-priv static int compare(WriteReftable.LogEntry a, WriteReftable.LogEntry b)