pub fn commit_signer_trailers(raw_commit: &str) -> Option<(String, String)>Expand description
Extract (root_did, device_did) from a commit’s Auths-Id / Auths-Device
trailers. Returns None when either trailer is absent (a commit not signed by
auths).
Args:
raw_commit: The raw git commit object (headers + message).
Usage:
ⓘ
if let Some((root, device)) = commit_signer_trailers(commit) { /* trusted? */ }