The effective state a snapshot fences on, base32 (what `Repository::insert_submitted_change` compares).
(snapshot: &pb::ViewSnapshot)
| 83 | /// The effective state a snapshot fences on, base32 (what |
| 84 | /// `Repository::insert_submitted_change` compares). |
| 85 | pub fn snapshot_fence(snapshot: &pb::ViewSnapshot) -> Result<String, String> { |
| 86 | Ok(hash_from_proto(snapshot.effective_state.as_ref())?.to_base32()) |
| 87 | } |
| 88 | |
| 89 | /// A rendered entry as a [`pb::TreeEntry`]: the content rides inline. |
| 90 | pub fn tree_entry_proto(entry: ViewEntry) -> pb::TreeEntry { |