MCPcopy Index your code
hub / github.com/git/git / git_user_agent

Function git_user_agent

version.c:28–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28const char *git_user_agent(void)
29{
30 static const char *agent = NULL;
31
32 if (!agent) {
33 agent = getenv("GIT_USER_AGENT");
34 if (!agent)
35 agent = GIT_USER_AGENT;
36 }
37
38 return agent;
39}
40
41/*
42 Retrieve, sanitize and cache operating system info for subsequent

Callers 3

get_curl_handleFunction · 0.85
git_user_agent_sanitizedFunction · 0.85
libgit_user_agentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected