Skip to main content

diff_trees

Function diff_trees 

Source
pub fn diff_trees(
    odb: &Odb,
    old_tree_oid: Option<&ObjectId>,
    new_tree_oid: Option<&ObjectId>,
    prefix: &str,
) -> Result<Vec<DiffEntry>>
Expand description

Compare two trees and return the list of changed entries.

§Parameters

  • odb — object database to read tree objects from.
  • old_tree_oid — OID of the old tree (or None for comparison against empty).
  • new_tree_oid — OID of the new tree (or None for comparison against empty).
  • prefix — path prefix for nested tree recursion (empty string for root).

§Errors

Returns errors from object database reads.