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) boolean
private String
private int
(package private) boolean
(package private) char[]
(package private) boolean
protected TreeFilter
(package private) RevWalk
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
addAuthorRevFilter
(String who) (package private) void
(package private) void
protected RevWalk
Create RevWalk(package private) void
enableBoundary
(boolean on) (package private) void
enableDateOrder
(boolean on) (package private) void
enableReverse
(boolean on) private void
enableRevSort
(RevSort type, boolean on) (package private) void
enableTopoOrder
(boolean on) protected void
run()
Perform the actions of this command.protected void
show
(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 int
walkLoop()
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:
run
in 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
RevWalk
object.
-
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
- theObjectWalk
used bywalkLoop()
currentObject
- The currentRevObject
- Throws:
Exception
-