ソースを参照

PackWriter: Fix total delta count

The total delta count is supposed to include reused deltas, not
just newly created deltas.

Change-Id: I98cbdcef80d59714a4f62ff322e7b709b08b6d26
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
tags/v0.12.1
Shawn O. Pearce 13年前
コミット
977446e5da
1個のファイルの変更3行の追加1行の削除
  1. 3
    1
      org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackWriter.java

+ 3
- 1
org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackWriter.java ファイルの表示

@@ -978,8 +978,10 @@ public class PackWriter {
out.endObject();
otp.setCRC(out.getCRC32());
stats.reusedObjects++;
if (otp.isDeltaRepresentation())
if (otp.isDeltaRepresentation()) {
stats.totalDeltas++;
stats.reusedDeltas++;
}
return;
} catch (StoredObjectRepresentationNotAvailableException gone) {
if (otp.getOffset() == out.length()) {

読み込み中…
キャンセル
保存