use std::path::PathBuf;
#[cfg(not(windows))]
fn fixup(v: Vec<u8>) -> Vec<u8> {
v
}
#[cfg(windows)]
fn fixup(v: Vec<u8>) -> Vec<u8> {
use bstr::ByteSlice;
v.replace(b"\r\n", "\n")
}
pub fn hex_to_id(hex: &str) -> git_object::Id {
git_object::Id::from_hex(hex.as_bytes()).unwrap()
}
pub fn fixture_path(path: &str) -> PathBuf {
PathBuf::from("tests").join("fixtures").join(path)
}
mod loose;
mod pack;