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

Function credential_reject

credential.c:565–581  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

563}
564
565void credential_reject(struct repository *r, struct credential *c)
566{
567 int i;
568
569 credential_next_state(c);
570
571 credential_apply_config(r, c);
572
573 for (i = 0; i < c->helpers.nr; i++)
574 credential_do(c, c->helpers.items[i].string, "erase");
575
576 credential_clear_secrets(c);
577 FREE_AND_NULL(c->username);
578 FREE_AND_NULL(c->oauth_refresh_token);
579 c->password_expiry_utc = TIME_MAX;
580 c->approved = 0;
581}
582
583static int check_url_component(const char *url, int quiet,
584 const char *name, const char *value)

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 4

credential_next_stateFunction · 0.85
credential_apply_configFunction · 0.85
credential_doFunction · 0.85
credential_clear_secretsFunction · 0.85

Tested by

no test coverage detected