Showing the changes to git-diff (1 of 13 files). Show all
Unified · Split
| @@ -1,7 +1,5 @@ | ||
| 1 | 1 | pub type Result<T = ()> = std::result::Result<T, Box<dyn std::error::Error>>; |
| 2 | 2 | |
| 3 | −pub fn hex_to_id(hex: &str) -> git_hash::ObjectId { | |
| 4 | − git_hash::ObjectId::from_hex(hex.as_bytes()).expect("40 bytes hex") | |
| 5 | −} | |
| 3 | +pub use git_testtools::hex_to_id; | |
| 6 | 4 | |
| 7 | 5 | mod visit; |