guts_git/lib.rs
1//! Git protocol implementation for Guts.
2//!
3//! This crate implements the git pack file format and smart HTTP protocol,
4//! enabling standard git clients to push and pull from Guts repositories.
5
6mod error;
7mod pack;
8mod pktline;
9mod protocol;
10
11pub use error::GitError;
12pub use pack::{PackBuilder, PackParser};
13pub use pktline::{PktLine, PktLineReader, PktLineWriter};
14pub use protocol::{
15 advertise_refs, receive_pack, upload_pack, Command, RefAdvertisement, WantHave,
16};
17
18/// Result type for git protocol operations.
19pub type Result<T> = std::result::Result<T, GitError>;