abstract class RevWalkTextBuiltin extends TextBuiltin
TextBuiltin.TerminatedByHelpException
Modifier and Type | Field and Description |
---|---|
(package private) boolean |
all |
private java.util.List<RevCommit> |
commits |
(package private) boolean |
count |
private java.lang.String |
followPath |
private int |
maxCount |
(package private) boolean |
objects |
(package private) char[] |
outbuffer |
(package private) boolean |
parents |
protected TreeFilter |
pathFilter |
private java.util.List<RevFilter> |
revLimiter |
private java.util.EnumSet<RevSort> |
sorting |
(package private) RevWalk |
walk |
Constructor and Description |
---|
RevWalkTextBuiltin() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
addAuthorRevFilter(java.lang.String who) |
(package private) void |
addCMessageRevFilter(java.lang.String msg) |
(package private) void |
addCommitterRevFilter(java.lang.String who) |
protected RevWalk |
createWalk()
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(RevCommit c)
"Show" the current RevCommit when called from the main processing loop.
|
protected int |
walkLoop()
Loop the walk
|
abbreviateRef, containsHelp, die, die, die, die, execute, getErrorWriter, getOutputWriter, getRepository, getResourceBundle, init, initRaw, parseArguments, printUsage, printUsageAndExit, printUsageAndExit, requiresRepository, resolve, setCommandName
RevWalk walk
boolean objects
boolean parents
boolean count
boolean all
char[] outbuffer
private final java.util.EnumSet<RevSort> sorting
private java.lang.String followPath
private java.util.List<RevCommit> commits
protected TreeFilter pathFilter
private final java.util.List<RevFilter> revLimiter
private int maxCount
private void enableRevSort(RevSort type, boolean on)
void enableDateOrder(boolean on)
void enableTopoOrder(boolean on)
void enableReverse(boolean on)
void enableBoundary(boolean on)
void addAuthorRevFilter(java.lang.String who)
void addCommitterRevFilter(java.lang.String who)
void addCMessageRevFilter(java.lang.String msg)
protected void run() throws java.lang.Exception
This method should only be invoked by TextBuiltin.execute(String[])
.
run
in class TextBuiltin
java.lang.Exception
- an error occurred while processing the command. The main
framework will catch the exception and print a message on
standard error.protected int walkLoop() throws java.lang.Exception
java.lang.Exception
- if any.protected abstract void show(RevCommit c) throws java.lang.Exception
Implement this methods to define the behavior for subclasses of RevWalkTextBuiltin.
c
- The current RevCommit
java.lang.Exception
protected void show(ObjectWalk objectWalk, RevObject currentObject) throws java.lang.Exception
The default implementation does nothing because most subclasses only process RevCommits.
objectWalk
- the ObjectWalk
used by
walkLoop()
currentObject
- The current RevObject
java.lang.Exception