(repo: &Repository, message: &str)
| 28 | } |
| 29 | |
| 30 | fn record(repo: &Repository, message: &str) -> Hash { |
| 31 | let header = ChangeHeader::builder() |
| 32 | .message(message) |
| 33 | .author(Author::new("Test", Some("test@example.com"))) |
| 34 | .build(); |
| 35 | *repo |
| 36 | .record(header, RecordOptions::default()) |
| 37 | .expect("record") |
| 38 | .hash() |
| 39 | } |
| 40 | |
| 41 | /// Build the canonical fixture: `dev` (shared) with two changes, and a |
| 42 | /// draft `orange` forked from it with three more changes on top. |