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

Function credential_match

credential.c:89–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89int credential_match(const struct credential *want,
90 const struct credential *have, int match_password)
91{
92#define CHECK(x) (!want->x || (have->x && !strcmp(want->x, have->x)))
93 return CHECK(protocol) &&
94 CHECK(host) &&
95 CHECK(path) &&
96 CHECK(username) &&
97 (!match_password || CHECK(password)) &&
98 (!match_password || CHECK(credential));
99#undef CHECK
100}
101
102
103static int credential_from_potentially_partial_url(struct credential *c,

Callers 4

match_partial_urlFunction · 0.85
parse_credential_fileFunction · 0.85
lookup_credentialFunction · 0.85
remove_credentialFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected