瀏覽代碼

Add lazy loading of body for tags to PlotWalk

This change is required by egit's lazy loading of the body in the
history view when the walk is started with setRetainBody(false).

Change-Id: I9291ba8c34c8744bc009b1bd302ed28bfa4e9476
Signed-off-by: Stefan Lay <stefan.lay@sap.com>
tags/v2.0.0.201206130900-r
Stefan Lay 12 年之前
父節點
當前提交
f0df18ff4f
共有 1 個檔案被更改,包括 5 行新增0 行删除
  1. 5
    0
      org.eclipse.jgit/src/org/eclipse/jgit/revplot/PlotWalk.java

+ 5
- 0
org.eclipse.jgit/src/org/eclipse/jgit/revplot/PlotWalk.java 查看文件

@@ -172,6 +172,11 @@ public class PlotWalk extends RevWalk {
return ((RevCommit) o).getCommitTime();
if (o instanceof RevTag) {
RevTag tag = (RevTag) o;
try {
parseBody(tag);
} catch (IOException e) {
return 0;
}
PersonIdent who = tag.getTaggerIdent();
return who != null ? who.getWhen().getTime() : 0;
}

Loading…
取消
儲存