Expand description
protocol API (re-exported at this path).
Structs§
- Client
Protocol Version Inputs - Explicit inputs for selecting the client-side Git wire protocol version.
- Protocol
Policy Inputs - Explicit inputs for protocol allow/deny evaluation.
Enums§
- Protocol
Error - Errors returned when a transport protocol is not allowed.
Functions§
- check_
protocol_ allowed_ with - Check whether a given protocol (e.g.
file,git,ssh,https) is allowed. - client_
git_ protocol_ header_ from_ config Git-Protocolheader value implied byprotocol.versioninconfig.- client_
git_ protocol_ header_ value - Value for the HTTP
Git-Protocolrequest header for a client protocol version. - parse_
protocol_ version_ digit - Parse a protocol version digit (
0,1, or2). - protocol_
from_ user - Whether
protocol.<name>.allow=usershould be considered allowed. - try_
effective_ client_ protocol_ version_ from_ config - Effective client-side protocol version from
protocol.versioninconfigonly. - try_
effective_ client_ protocol_ version_ from_ inputs - Select the effective client-side protocol version (strict).
- try_
protocol_ version_ from_ config_ value - Parse
protocol.versionfrom config (strict: invalid values are rejected).