Skip to main content

Crate grit_protocol

Crate grit_protocol 

Source
Expand description

Git smart protocol handlers for HTTP transport.

Provides a clean Rust API for running git upload-pack and receive-pack operations. Currently implemented by spawning grit as a subprocess with piped I/O — the same model as git-http-backend.

Future work: replace subprocess calls with in-process protocol handling once the core protocol logic is libified with generic Read/Write streams.

Modules§

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

Functions§

grit_executable
Find the grit executable path.
validate_repo_path
Validate that a path looks like a git repository (bare or non-bare).