Top Fields Constructors Methods
org.eclipse.jgit.pgm

pack-priv abstract Class RevWalkTextBuiltin

extends TextBuiltin
Class Inheritance
Known Direct Subclasses
org.eclipse.jgit.pgm.Glog, org.eclipse.jgit.pgm.Log, org.eclipse.jgit.pgm.RevList
Imports
java.text.MessageFormat, java.util.ArrayList, .EnumSet, .List, org.eclipse.jgit.diff.DiffConfig, org.eclipse.jgit.errors.IncorrectObjectTypeException, org.eclipse.jgit.lib.Constants, .ObjectId, .Ref, org.eclipse.jgit.pgm.internal.CLIText, org.eclipse.jgit.pgm.opt.PathTreeFilterHandler, org.eclipse.jgit.revwalk.FollowFilter, .ObjectWalk, .RevCommit, .RevFlag, .RevObject, .RevSort, .RevWalk, org.eclipse.jgit.revwalk.filter.AndRevFilter, .AuthorRevFilter, .CommitterRevFilter, .MessageRevFilter, .RevFilter, org.eclipse.jgit.treewalk.filter.AndTreeFilter, .TreeFilter, org.kohsuke.args4j.Argument, .Option

Field Summary

Modifier and TypeField and Description
pack-priv boolean
private List<RevCommit>
pack-priv boolean
private String
private int
pack-priv boolean
pack-priv char[]
pack-priv boolean
protected TreeFilter
private final List<RevFilter>
private final EnumSet<RevSort>
pack-priv RevWalk
Inherited from org.eclipse.jgit.pgm.TextBuiltin:
argWalkdberrserrwgitdirinsoutsoutw

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv void
pack-priv void
pack-priv void
protected RevWalk
createWalk()

Create RevWalk

pack-priv void
enableBoundary(boolean on)

pack-priv void
enableDateOrder(boolean on)

pack-priv void
enableReverse(boolean on)

private void
enableRevSort(RevSort type, boolean on)

pack-priv void
enableTopoOrder(boolean on)

protected void
run()

Implements abstract org.eclipse.jgit.pgm.TextBuiltin.run.

Perform the actions of this command.

protected abstract void
show(RevCommit c)

"Show" the current RevCommit when called from the main processing loop.

protected void
show(final ObjectWalk objectWalk, final RevObject currentObject)

"Show" the current RevCommit when called from the main processing loop.

protected int

Returns:

number of RevCommits walked
walkLoop
()

Loop the walk

Inherited from org.eclipse.jgit.pgm.TextBuiltin:
abbreviateRefcontainsHelpdiediediedieexecutegetErrorWritergetOutputWritergetRepositorygetResourceBundleinitinitRawparseArgumentsprintUsageprintUsageAndExitprintUsageAndExitrequiresRepositoryresolvesetCommandName

Field Detail

allback to summary
pack-priv boolean all
Annotations
@Option
name:--all
commitsback to summary
private List<RevCommit> commits
Annotations
@Argument
index:0
metaVar:metaVar_commitish
countback to summary
pack-priv boolean count
Annotations
@Option
name:--total-count
followPathback to summary
private String followPath
Annotations
@Option
name:--follow
metaVar:metaVar_path
maxCountback to summary
private int maxCount
Annotations
@Option
name:--max-count
aliases:-n
metaVar:metaVar_n
objectsback to summary
pack-priv boolean objects
Annotations
@Option
name:--objects
outbufferback to summary
pack-priv char[] outbuffer
parentsback to summary
pack-priv boolean parents
Annotations
@Option
name:--parents
pathFilterback to summary
protected TreeFilter pathFilter
Annotations
@Option
name:--
metaVar:metaVar_path
handler:PathTreeFilterHandler
revLimiterback to summary
private final List<RevFilter> revLimiter
sortingback to summary
private final EnumSet<RevSort> sorting
walkback to summary
pack-priv RevWalk walk

Constructor Detail

RevWalkTextBuiltinback to summary
pack-priv RevWalkTextBuiltin()

Method Detail

addAuthorRevFilterback to summary
pack-priv void addAuthorRevFilter(String who)
Annotations
@Option
name:--author
addCMessageRevFilterback to summary
pack-priv void addCMessageRevFilter(String msg)
Annotations
@Option
name:--grep
addCommitterRevFilterback to summary
pack-priv void addCommitterRevFilter(String who)
Annotations
@Option
name:--committer
createWalkback to summary
protected RevWalk createWalk()

Create RevWalk

Returns:RevWalk

a org.eclipse.jgit.revwalk.RevWalk object.

enableBoundaryback to summary
pack-priv void enableBoundary(boolean on)
Annotations
@Option
name:--boundary
enableDateOrderback to summary
pack-priv void enableDateOrder(boolean on)
Annotations
@Option
name:--date-order
enableReverseback to summary
pack-priv void enableReverse(boolean on)
Annotations
@Option
name:--reverse
enableRevSortback to summary
private void enableRevSort(RevSort type, boolean on)
enableTopoOrderback to summary
pack-priv void enableTopoOrder(boolean on)
Annotations
@Option
name:--topo-order
runback to summary
protected void run() throws Exception

Implements abstract org.eclipse.jgit.pgm.TextBuiltin.run.

Doc from org.eclipse.jgit.pgm.TextBuiltin.run.

Perform the actions of this command.

This method should only be invoked by execute(String[]).

Annotations
@Override
Exceptions
Exception:
an error occurred while processing the command. The main framework will catch the exception and print a message on standard error.
showback to summary
protected abstract void show(RevCommit c) throws Exception

"Show" the current RevCommit when called from the main processing loop.

Implement this methods to define the behavior for subclasses of RevWalkTextBuiltin.

Parameters
c:RevCommit

The current org.eclipse.jgit.revwalk.RevCommit

Exceptions
Exception:
if an error occurred
showback to summary
protected void show(final ObjectWalk objectWalk, final RevObject currentObject) throws Exception

"Show" the current RevCommit when called from the main processing loop.

The default implementation does nothing because most subclasses only process RevCommits.

Parameters
objectWalk:ObjectWalk

the org.eclipse.jgit.revwalk.ObjectWalk used by walkLoop()

currentObject:RevObject

The current org.eclipse.jgit.revwalk.RevObject

Exceptions
Exception:
if an error occurred
walkLoopback to summary
protected int walkLoop() throws Exception

Loop the walk

Returns:int

number of RevCommits walked

Exceptions
Exception:
if any.