(oid: &str, index: &[u8])
| 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); |