git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Fixes to packed delta format reading.

From
Robin Rosenberg <robin.rosenberg@dewire.com>
Date
Aug 6, 2006, 18:40 UTC
Message-ID
<20060806184038.7591.12898.stgit@lathund.dewire.com>
In-Reply-To
<20060806183748.7591.61536.stgit@lathund.dewire.com>
From: Robin Rosenberg <robin.rosenberg@dewire.com>
---
 .../src/org/spearce/jgit/lib/PatchDeltaStream.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/org.spearce.jgit/src/org/spearce/jgit/lib/PatchDeltaStream.java b/org.spearce.jgit/src/org/spearce/jgit/lib/PatchDeltaStream.java
index 808e854..11a7679 100644
--- a/org.spearce.jgit/src/org/spearce/jgit/lib/PatchDeltaStream.java
+++ b/org.spearce.jgit/src/org/spearce/jgit/lib/PatchDeltaStream.java
@@ -105,7 +105,7 @@ public class PatchDeltaStream extends In
                             + " load delta base for patching.");
                     }
                     shift += n;
-                    expBaseLen += n;
+                    expBaseLen -= n;
                 }
             }
             finally
@@ -269,7 +269,7 @@ public class PatchDeltaStream extends In
         throws IOException
     {
         int r;
-        while ((r = read(buf, o, len)) > 0)
+        while ((r = deltaStream.read(buf, o, len)) > 0)
         {
             o += r;
             len -= r;
Previous: Robin RosenbergNext: Shawn Pearce
Message 2 of 4 in “EGIT packed delta format reading”
  1. Robin RosenbergAug 6, 2006
  2. Fixes to packed delta format reading.Robin Rosenberg, Aug 6, 2006
  3. Shawn PearceAug 7, 2006
  4. Shawn PearceAug 7, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.