瀏覽代碼

eclipse-iplog: Correct line counts in initial commit

The initial commit line counts where wrong in the IP log, as we
were incrementing the file pointer by not the number of bytes in
the line, but the offset of the start of the next line.

Change-Id: Ia220ba235e9fa522f3f5591b76652c174bcb094d
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
tags/v0.7.0
Shawn O. Pearce 14 年之前
父節點
當前提交
c94c631eda
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      org.eclipse.jgit.iplog/src/org/eclipse/jgit/iplog/IpLogGenerator.java

+ 1
- 1
org.eclipse.jgit.iplog/src/org/eclipse/jgit/iplog/IpLogGenerator.java 查看文件

@@ -389,7 +389,7 @@ public class IpLogGenerator {
if (tw.getFileMode(0).getObjectType() == Constants.OBJ_BLOB) {
byte[] buf = openBlob(0);
for (int ptr = 0; ptr < buf.length;) {
ptr += RawParseUtils.nextLF(buf, ptr);
ptr = RawParseUtils.nextLF(buf, ptr);
addedLines++;
}
}

Loading…
取消
儲存