]> source.dussan.org Git - jgit.git/commitdiff
Document the show methods of RevWalkTextBuiltin 64/4264/1
authorRobin Rosenberg <robin.rosenberg@dewire.com>
Sun, 18 Sep 2011 11:07:24 +0000 (13:07 +0200)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Sun, 18 Sep 2011 11:08:14 +0000 (13:08 +0200)
Change-Id: Ic704008cb215e1437c0a3fd1aec3aa38209ef3c7
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/RevWalkTextBuiltin.java

index 50fe31f8f3cc9db50284feb89cdbadb2f3745b08..d23cbd47ad4963b00db89143ad7e092d06fba712 100644 (file)
@@ -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.