diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2010-03-11 11:36:26 -0800 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2010-03-11 15:15:03 -0800 |
commit | c94c631eda9e85b419fa41fa891b07b947ad6242 (patch) | |
tree | 169c68f173f01377a032a37c09caa9f2aaebddbf /org.eclipse.jgit.iplog/src | |
parent | 41bc1738a4bbec12406a611b5d9f6ff7669c9431 (diff) | |
download | jgit-c94c631eda9e85b419fa41fa891b07b947ad6242.tar.gz jgit-c94c631eda9e85b419fa41fa891b07b947ad6242.zip |
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>
Diffstat (limited to 'org.eclipse.jgit.iplog/src')
-rw-r--r-- | org.eclipse.jgit.iplog/src/org/eclipse/jgit/iplog/IpLogGenerator.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit.iplog/src/org/eclipse/jgit/iplog/IpLogGenerator.java b/org.eclipse.jgit.iplog/src/org/eclipse/jgit/iplog/IpLogGenerator.java index 1f60ee5628..040887ece4 100644 --- a/org.eclipse.jgit.iplog/src/org/eclipse/jgit/iplog/IpLogGenerator.java +++ b/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++; } } |