summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.pgm
diff options
context:
space:
mode:
authorRobin Rosenberg <robin.rosenberg@dewire.com>2011-09-18 13:07:24 +0200
committerRobin Rosenberg <robin.rosenberg@dewire.com>2011-09-18 13:08:14 +0200
commiteb8431da757f44e9175716b4c1b08548043463a8 (patch)
treed42331f826d846f92b594103e3e8c509aa22ca2b /org.eclipse.jgit.pgm
parentedaca7ed12a26ade6ef7c9482d58e6ad186c27f9 (diff)
downloadjgit-eb8431da757f44e9175716b4c1b08548043463a8.tar.gz
jgit-eb8431da757f44e9175716b4c1b08548043463a8.zip
Document the show methods of RevWalkTextBuiltin
Change-Id: Ic704008cb215e1437c0a3fd1aec3aa38209ef3c7 Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
Diffstat (limited to 'org.eclipse.jgit.pgm')
-rw-r--r--org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/RevWalkTextBuiltin.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/RevWalkTextBuiltin.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/RevWalkTextBuiltin.java
index 50fe31f8f3..d23cbd47ad 100644
--- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/RevWalkTextBuiltin.java
+++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/RevWalkTextBuiltin.java
@@ -226,8 +226,30 @@ abstract class RevWalkTextBuiltin extends TextBuiltin {
return n;
}
+ /**
+ * "Show" the current RevCommit when called from the main processing loop.
+ * <p>
+ * Implement this methods to define the behavior for subclasses of
+ * RevWalkTextBuiltin.
+ *
+ * @param c
+ * The current {@link RevCommit}
+ * @throws Exception
+ */
protected abstract void show(final RevCommit c) throws Exception;
+ /**
+ * "Show" the current RevCommit when called from the main processing loop.
+ * <p>
+ * The default implementation does nothing because most subclasses only
+ * process RevCommits.
+ *
+ * @param objectWalk
+ * the {@link ObjectWalk} used by {@link #walkLoop()}
+ * @param currentObject
+ * The current {@link RevObject}
+ * @throws Exception
+ */
protected void show(final ObjectWalk objectWalk,
final RevObject currentObject) throws Exception {
// Do nothing by default. Most applications cannot show an object.