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

Function credential_approve

credential.c:547–563  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

545}
546
547void credential_approve(struct repository *r, struct credential *c)
548{
549 int i;
550
551 if (c->approved)
552 return;
553 if (((!c->username || !c->password) && !c->credential) || c->password_expiry_utc < time(NULL))
554 return;
555
556 credential_next_state(c);
557
558 credential_apply_config(r, c);
559
560 for (i = 0; i < c->helpers.nr; i++)
561 credential_do(c, c->helpers.items[i].string, "store");
562 c->approved = 1;
563}
564
565void credential_reject(struct repository *r, struct credential *c)
566{

Callers 5

handle_curl_resultFunction · 0.85
imap_open_storeFunction · 0.85
curl_append_msgs_to_imapFunction · 0.85
curl_list_imap_foldersFunction · 0.85
cmd_credentialFunction · 0.85

Calls 3

credential_next_stateFunction · 0.85
credential_apply_configFunction · 0.85
credential_doFunction · 0.85

Tested by

no test coverage detected