Package org.eclipse.jgit.pgm
Class RevWalkTextBuiltin
java.lang.Object
org.eclipse.jgit.pgm.TextBuiltin
org.eclipse.jgit.pgm.RevWalkTextBuiltin
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jgit.pgm.TextBuiltin
TextBuiltin.TerminatedByHelpException -
Field Summary
FieldsModifier and TypeFieldDescription(package private) boolean(package private) booleanprivate Stringprivate int(package private) boolean(package private) char[](package private) booleanprotected TreeFilter(package private) RevWalk -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidaddAuthorRevFilter(String who) (package private) void(package private) voidprotected RevWalkCreate RevWalk(package private) voidenableBoundary(boolean on) (package private) voidenableDateOrder(boolean on) (package private) voidenableReverse(boolean on) private voidenableRevSort(RevSort type, boolean on) (package private) voidenableTopoOrder(boolean on) protected voidrun()Perform the actions of this command.protected voidshow(ObjectWalk objectWalk, RevObject currentObject) "Show" the current RevCommit when called from the main processing loop.protected abstract void"Show" the current RevCommit when called from the main processing loop.protected intwalkLoop()Loop the walkMethods inherited from class org.eclipse.jgit.pgm.TextBuiltin
abbreviateRef, containsHelp, die, die, die, die, execute, getErrorWriter, getOutputWriter, getRepository, getResourceBundle, init, initRaw, parseArguments, printUsage, printUsageAndExit, printUsageAndExit, requiresRepository, resolve, setCommandName
-
Field Details
-
walk
RevWalk walk -
objects
boolean objects -
parents
boolean parents -
count
boolean count -
all
boolean all -
outbuffer
char[] outbuffer -
sorting
-
followPath
-
commits
-
pathFilter
-
revLimiter
-
maxCount
private int maxCount
-
-
Constructor Details
-
RevWalkTextBuiltin
RevWalkTextBuiltin()
-
-
Method Details
-
enableRevSort
-
enableDateOrder
void enableDateOrder(boolean on) -
enableTopoOrder
void enableTopoOrder(boolean on) -
enableReverse
void enableReverse(boolean on) -
enableBoundary
void enableBoundary(boolean on) -
addAuthorRevFilter
-
addCommitterRevFilter
-
addCMessageRevFilter
-
run
Perform the actions of this command.This method should only be invoked by
TextBuiltin.execute(String[]).- Specified by:
runin classTextBuiltin- Throws:
Exception- an error occurred while processing the command. The main framework will catch the exception and print a message on standard error.
-
createWalk
Create RevWalk- Returns:
- a
RevWalkobject.
-
walkLoop
Loop the walk- Returns:
- number of RevCommits walked
- Throws:
Exception- if any.
-
show
"Show" the current RevCommit when called from the main processing loop.Implement this methods to define the behavior for subclasses of RevWalkTextBuiltin.
-
show
"Show" the current RevCommit when called from the main processing loop.The default implementation does nothing because most subclasses only process RevCommits.
- Parameters:
objectWalk- theObjectWalkused bywalkLoop()currentObject- The currentRevObject- Throws:
Exception
-