Function git_repository::env::agent

source ·
pub fn agent() -> &'static str
Expand description

Returns the name of the agent for identification towards a remote server as statically known when compiling the crate. Suitable for both git servers and HTTP servers, and used unless configured otherwise.

Note that it’s meant to be used in conjunction with protocol::agent() which prepends git/.