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.StringlsRemotePathprivate java.lang.StringreftablePathprivate static longSEED1private static longSEED2
-
Constructor Summary
Constructors Constructor Description VerifyReftable()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidbyId(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.Stringid(ObjectId id)protected voidrun()Perform the actions of this command.private voidscan(java.util.List<Ref> refs, ReftableReader reader)private voidseek(java.util.List<Ref> refs, ReftableReader reader)private voidverify(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.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.
-
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)
-
-