소스 검색

Document the show methods of RevWalkTextBuiltin

Change-Id: Ic704008cb215e1437c0a3fd1aec3aa38209ef3c7
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
tags/v1.2.0.201112221803-r
Robin Rosenberg 12 년 전
부모
커밋
eb8431da75
1개의 변경된 파일22개의 추가작업 그리고 0개의 파일을 삭제
  1. 22
    0
      org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/RevWalkTextBuiltin.java

+ 22
- 0
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.

Loading…
취소
저장