Skip to main content

for_each_tree_diff_structured

Function for_each_tree_diff_structured 

Source
pub fn for_each_tree_diff_structured(
    odb: &Odb,
    entries: &[DiffEntry],
    diff_options: DiffOptions,
    config: &ConfigSet,
    thread_policy: &ThreadPolicy,
    visit: impl FnMut(TreeDiffStructured) -> Result<()>,
) -> Result<()>
Expand description

Visit structured tree diffs in path order without retaining every file’s hunks at once.

When thread policy allows, workers compute up to about 2 × threads entries ahead while the callback consumes results strictly in order.

§Errors

Propagates object database read failures and callback errors.