Skip to main content

pack_diff_bundled

Function pack_diff_bundled 

Source
pub fn pack_diff_bundled(diff: &str, max_chars: usize) -> (String, Vec<String>)
Expand description

pack_diff that keeps related files together: a source and its test, or i18n siblings, pack as one unit and stay adjacent, instead of being scattered by priority. Falls back to keeping a unit’s highest-priority members when the whole unit can’t fit, so a big source is never dropped just because its test pushed the bundle over budget.