Expand description
Git smart protocol handlers for HTTP transport.
Runs upload-pack and receive-pack in-process via grit_lib::remote::serve, with
no subprocess or external grit binary. Every push runs the PushGuard, which
keeps pushes off the target branch of a repository with snapshot checkouts.
Re-exports§
pub use session::ReceiveRpcResult;pub use session::ServeSession;
Modules§
- receive_
pack - Receive-pack protocol handler (server side of push).
- session
- Per-request session controls for smart-protocol handlers.
- upload_
pack - Upload-pack protocol handler (server side of fetch/clone).
Structs§
- Extensions
- Server features beyond plain fetch and push, for the
_withhandlers. - Push
Guard - The in-process checks every push these handlers serve gets.
- Repository
Options - Options passed to
crate::repo::Repository::open,crate::repo::Repository::discover, and related entry points.
Enums§
- Error
- Errors from smart-protocol handlers.
Functions§
- protocol_
version_ from_ header - Map an explicit smart-HTTP protocol version header to a wire version.
- repository_
options_ from_ process - Build
RepositoryOptionsfrom the current process environment (RepositoryOptions::from_process). - validate_
repo_ path - Validate that a path looks like a git repository (bare or non-bare).
Type Aliases§
- Result
- Result alias for protocol handlers.