Skip to main content

Crate grit_protocol

Crate grit_protocol 

Source
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.

Modules§

receive_pack
Receive-pack protocol handler (server side of push).
upload_pack
Upload-pack protocol handler (server side of fetch/clone).

Structs§

RepositoryOptions
Options passed to repository open/discover with an explicit Environment.

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 RepositoryOptions from the current process environment.
validate_repo_path
Validate that a path looks like a git repository (bare or non-bare).

Type Aliases§

Result
Result alias for protocol handlers.