pub fn compute_patch_id(
odb: &Odb,
commit_oid: &ObjectId,
) -> Result<Option<ObjectId>>Expand description
Compute the patch-ID for a single commit.
Returns None for merge commits (more than one parent), since those do not
have a well-defined single-parent diff. Root commits (no parents) are
compared against the empty tree.
§Parameters
odb— object database used to read commit, tree, and blob objects.commit_oid— OID of the commit to compute the patch-ID for.
§Errors
Returns errors from object-database reads or object-parse failures.