Files
sausage/userland/git/vendor/gix-index/src/extension/sparse.rs
T
surma 4b27e9afd5 userland/git: git-compatible CLI on v2's gix code (T10)
Local workflow, smart-HTTP clone/fetch/push and public HTTPS clone/fetch match
native git in stdout and exit codes. Only WASI imports (wasi:http, exit-with-code).
2026-11-06 16:07:57 +00:00

12 lines
387 B
Rust

use crate::extension::Signature;
/// The signature of the sparse index extension, nothing more than an indicator at this time.
pub const SIGNATURE: Signature = *b"sdir";
/// Serialize the sparse index extension to `out`
pub fn write_to(mut out: impl std::io::Write) -> Result<(), std::io::Error> {
out.write_all(&SIGNATURE)?;
out.write_all(&0_u32.to_be_bytes())?;
Ok(())
}