Skip to content
Snippets Groups Projects
Commit c94c631e authored by Shawn Pearce's avatar Shawn Pearce
Browse files

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: default avatarShawn O. Pearce <spearce@spearce.org>
parent 41bc1738
No related branches found
No related tags found
No related merge requests found
......@@ -389,7 +389,7 @@ private void scanProjectCommits(RevCommit start) throws IOException {
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++;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment