commit - 6df54056c976d99d51069d904e5f5ce8243ec3f2
commit + 39e73dc971ffb8202e7754268d65a5d69bb08dc9
blob - fb5e1481403dce4d214df33cc142f465105f5dc0
blob + e34bc99ac2cc963e73e3c9b78104062681407ccb
--- lib/got_delta_priv.h
+++ lib/got_delta_priv.h
/*
* A delta stream begins with two size fields. The first specifies the
* size of the delta base, and the second describes the expected size of
- * the data which results from combining the delta base and the delta.
+ * the data which results from applying the delta to the delta base.
*
* Each size field uses a variable length encoding:
* size0...sizeN form a 7+7+7+...+7 bit integer, where size0 is the
/*
* The rest of the delta stream contains copy instructions.
*
- * A base copy instruction tells the delta combiner to copy N bytes starting
- * at offset X from the delta base to the output. Base copy instructions begin
- * with a byte which has its MSB set. The remaining bits of this byte describe
- * how many offset and length value bytes follow.
+ * A base copy instruction copies N bytes starting at offset X from the delta
+ * base to the output. Base copy instructions begin with a byte which has its
+ * MSB set. The remaining bits of this byte describe how many offset and
+ * length value bytes follow.
* The offset X is encoded in 1 to 4 bytes, and the length N is encoded in
* 1 to 3 bytes. For both values, the first byte contributes the least
* significant part and the last byte which is present contributes the
* If the offset value is omitted, an offset of zero is implied.
* If the length value is omitted, a default length of 65536 bytes is implied.
*
- * An inline copy instruction tells the delta combiner to copy data from
- * the delta stream to the output.
+ * An inline copy instruction copies data from the delta stream to the output.
* Such instructions begin with one byte which does not have the MSB set
* and which specifies the length of the inline data which follows (i.e.
* at most 127 bytes). A length value of zero is invalid.
blob - aa10b0e5b17e9664e38c23e1c3469a9408cdf146
blob + 57e1edcddca6206940afb42f2a486324da5e4eed
--- lib/pack.c
+++ lib/pack.c
(*obj)->flags = 0;
(*obj)->hdrlen = 0;
- (*obj)->size = 0; /* Not yet known because deltas aren't combined. */
+ (*obj)->size = 0; /* Not known because deltas aren't applied yet. */
memcpy(&(*obj)->id, id, sizeof((*obj)->id));
(*obj)->pack_offset = offset + tslen;