MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / token

Function token

atomic-repository/src/repository/workspace_txn.rs:2126–2137  ·  view source on GitHub ↗
(oid: &str, index: &[u8])

Source from the content-addressed store, hash-verified

2124 }
2125
2126 fn token(oid: &str, index: &[u8]) -> GitObservationToken {
2127 GitObservationToken {
2128 head: head(oid),
2129 head_tree: Some("tree".to_string()),
2130 index_digest: Hash::of(index),
2131 index_tree: Some("tree".to_string()),
2132 index_stages: vec![0],
2133 index_locked: false,
2134 repository_state: "Clean".to_string(),
2135 markers: Vec::new(),
2136 }
2137 }
2138
2139 fn write_test_checkpoint(root: &Path, repo: &Repository, oid: &str) {
2140 let path = root.join(CHECKPOINT_RELATIVE_PATH);

Calls 1

headFunction · 0.85