Skip to main content

complete_git_snapshot_object_graph

Function complete_git_snapshot_object_graph 

Source
pub fn complete_git_snapshot_object_graph<E>(
    archive_blob: GitSha1ObjectId,
    descriptor_blob: GitSha1ObjectId,
    operation_id: &str,
    created_at_ms: u64,
    hash_object: impl FnMut(GitSnapshotObjectKind, &[u8]) -> Result<GitSha1ObjectId, E>,
) -> Result<GitSnapshotObjectGraphV1, E>
Expand description

Complete the exact six-object graph after the two potentially streamed blobs are hashed.

Callers must explicitly prove SHA-1 object format before hashing either blob. The callback is then invoked exactly three times for trees, leaf to root, and once for the parentless commit.

ยงErrors

Returns the callback error or a canonical-encoding failure converted into E.