Sebastian Thiel[ref #138] refactor3fc00145 years agoHistory
12 lines · 329 B · Rust
RawDownload
use std::path::PathBuf; pub fn write_packed_refs_with(input: &[u8]) -> crate::Result<(tempfile::TempDir, PathBuf)> {    let dir = tempfile::tempdir()?;    let packed_refs_path = dir.path().join("packed-refs");    std::fs::write(&packed_refs_path, input)?;    Ok((dir, packed_refs_path))} mod find;pub mod iter;mod open;