libpijul::diff::bytes_pos is now sometimes called on the last byte of the file; handle that case
Dependencies
- [2]
TGA6QXGIInitial support for binary diffs (conflicts are not yet supported in the output) - [3]
IYJZVLETCleaning up the literate programming bits - [4]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting).
Change contents
- replacement in "libpijul/src/diff/mod.rs" at line 197
debug!("bytes pos {:?} {:?}",old,Line {l: &(chunks[old].l)[..20.min(chunks[old].l.len())],..chunks[old]});chunks[old].l.as_ptr() as usize - chunks[0].l.as_ptr() as usizeif old < chunks.len() {chunks[old].l.as_ptr() as usize - chunks[0].l.as_ptr() as usize} else {chunks[old - 1].l.as_ptr() as usize - chunks[0].l.as_ptr() as usize+ chunks[old - 1].l.len()}