Skip to main content

semantic_commit_fingerprint

Function semantic_commit_fingerprint 

Source
pub fn semantic_commit_fingerprint(
    namespace_id: &NamespaceId,
    actor: &ActorId,
    subject_id: Option<&SubjectId>,
    message: Option<&str>,
    operations: &[FilesystemOperation],
    preconditions: &[CommitPrecondition],
    inline_content_ids: &BTreeSet<ContentId>,
) -> Result<CommitFingerprint, SemanticFingerprintError>
Expand description

Computes the semantic fingerprint used to validate a reused commit ID.

A single-operation helper and a one-item batch produce the same input and therefore the same fingerprint.

IDs in inline_content_ids use the SHA-256 checksum from their reference as content identity. Other references keep their object identity.