Skip to content

Commit

Permalink
count-delta.c: comment fixes
Browse files Browse the repository at this point in the history
There was a stale comment that explains why the old code could
undercount when delta data copied things around inside detination
buffer.  We do not use that kind of delta, so the comment does
not apply.
  • Loading branch information
Nicolas Pitre authored and Junio C Hamano committed Feb 10, 2006
1 parent 4d44cb1 commit e7ad4a9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions count-delta.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@
*
* Number of bytes that are _not_ copied from the source is deletion,
* and number of inserted literal bytes are addition, so sum of them
* is the extent of damage. xdelta can express an edit that copies
* data inside of the destination which originally came from the
* source. We do not count that in the following routine, so we are
* undercounting the source material that remains in the final output
* that way.
* is the extent of damage.
*/
int count_delta(void *delta_buf, unsigned long delta_size,
unsigned long *src_copied, unsigned long *literal_added)
Expand Down

0 comments on commit e7ad4a9

Please sign in to comment.