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

Function credential_describe

credential.c:210–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208}
209
210static void credential_describe(struct credential *c, struct strbuf *out)
211{
212 if (!c->protocol)
213 return;
214 strbuf_addf(out, "%s://", c->protocol);
215 if (c->username && *c->username)
216 strbuf_addf(out, "%s@", c->username);
217 if (c->host)
218 strbuf_addstr(out, c->host);
219 if (c->path)
220 strbuf_addf(out, "/%s", c->path);
221}
222
223static void credential_format(struct credential *c, struct strbuf *out)
224{

Callers 1

credential_ask_oneFunction · 0.85

Calls 2

strbuf_addfFunction · 0.85
strbuf_addstrFunction · 0.85

Tested by

no test coverage detected