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

Function match_partial_url

credential.c:156–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156static int match_partial_url(const char *url, void *cb)
157{
158 struct credential *c = cb;
159 struct credential want = CREDENTIAL_INIT;
160 int matches = 0;
161
162 if (credential_from_potentially_partial_url(&want, url) < 0)
163 warning(_("skipping credential lookup for key: credential.%s"),
164 url);
165 else
166 matches = credential_match(&want, c, 0);
167 credential_clear(&want);
168
169 return matches;
170}
171
172static void credential_apply_config(struct repository *r, struct credential *c)
173{

Callers

nothing calls this directly

Calls 4

warningFunction · 0.85
credential_matchFunction · 0.85
credential_clearFunction · 0.70

Tested by

no test coverage detected