Package org.eclipse.jgit.pgm.debug
Class VerifyReftable
- java.lang.Object
-
- org.eclipse.jgit.pgm.TextBuiltin
-
- org.eclipse.jgit.pgm.debug.VerifyReftable
-
class VerifyReftable extends TextBuiltin
-
-
Nested Class Summary
-
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
lsRemotePath
private java.lang.String
reftablePath
private static long
SEED1
private static long
SEED2
-
Constructor Summary
Constructors Constructor Description VerifyReftable()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
byId(java.util.List<Ref> refs, ReftableReader reader)
private static java.util.Map<ObjectId,java.util.List<Ref>>
groupById(java.util.List<Ref> refs)
private static java.lang.String
id(ObjectId id)
protected void
run()
Perform the actions of this command.private void
scan(java.util.List<Ref> refs, ReftableReader reader)
private void
seek(java.util.List<Ref> refs, ReftableReader reader)
private void
verify(Ref exp, RefCursor rc)
-
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
-
SEED1
private static final long SEED1
- See Also:
- Constant Field Values
-
SEED2
private static final long SEED2
- See Also:
- Constant Field Values
-
lsRemotePath
private java.lang.String lsRemotePath
-
reftablePath
private java.lang.String reftablePath
-
-
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.
-
scan
private void scan(java.util.List<Ref> refs, ReftableReader reader) throws java.io.IOException
- Throws:
java.io.IOException
-
seek
private void seek(java.util.List<Ref> refs, ReftableReader reader) throws java.io.IOException
- Throws:
java.io.IOException
-
byId
private void byId(java.util.List<Ref> refs, ReftableReader reader) throws java.io.IOException
- Throws:
java.io.IOException
-
groupById
private static java.util.Map<ObjectId,java.util.List<Ref>> groupById(java.util.List<Ref> refs)
-
verify
private void verify(Ref exp, RefCursor rc) throws java.io.IOException
- Throws:
java.io.IOException
-
id
private static java.lang.String id(ObjectId id)
-
-