Function jujutsu_lib::diff::diff
source · [−]pub fn diff<'a>(left: &'a [u8], right: &'a [u8]) -> Vec<DiffHunk<'a>>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator, Expand description
Diffs two slices of bytes. The returned diff hunks may be any length (may span many lines or may be only part of a line). This currently uses Histogram diff (or maybe something similar; I’m not sure I understood the algorithm correctly). It first diffs lines in the input and then refines the changed ranges at the word level.