Skip to content
Clone
eeff292
20 lines 860 B Rust
//! Git LFS (Large File Storage) protocol types and core logic.
//!
//! This module is the single implementation home for LFS in the git crate:
//! wire types ([`types`]), input validation ([`validate`]), object
//! upload/verify/download mechanics ([`object`]), and file locking
//! ([`lock`]). [`error`] maps failures onto LFS HTTP semantics for the future
//! HTTP layer mounted at `/{space}/{repo}.git/info/lfs`.
//!
//! [`GitService`](crate::service::GitService) methods in
//! `service/lfs.rs` delegate here and stay the stable public entry point.
pub mod error;
pub mod lock;
pub mod types;
pub mod validate;
pub use error::GitError as LfsErrorKind;
pub use lock::{create as create_lock, list as list_locks, unlock, unlock_by_id, verify_locks};
pub use types::*;
pub use validate::{canonical_oid, is_canonical_oid, validate_lock_path, validate_size};