Track and record a file, so its content — not merely its name — is in the graph.
(root: &Path, name: &str, bytes: &[u8])
| 66 | |
| 67 | /// Track and record a file, so its content — not merely its name — is in the graph. |
| 68 | fn record_file(root: &Path, name: &str, bytes: &[u8]) { |
| 69 | fs::write(root.join(name), bytes).unwrap(); |
| 70 | cli(root, &["add", name]); |
| 71 | cli(root, &["record", "-m", &format!("record {name}"), name]); |
| 72 | } |
| 73 | |
| 74 | fn change_count(root: &Path) -> usize { |
| 75 | cli(root, &["log", "-f", "oneline"]) |
no test coverage detected