MCPcopy Create free account
hub / github.com/git/git / remove_credential

Function remove_credential

builtin/credential-cache--daemon.c:47–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47static void remove_credential(const struct credential *c, int match_password)
48{
49 struct credential_cache_entry *e;
50
51 int i;
52 for (i = 0; i < entries_nr; i++) {
53 e = &entries[i];
54 if (credential_match(c, &e->item, match_password))
55 e->expiration = 0;
56 }
57}
58
59static timestamp_t check_expirations(void)
60{

Callers 1

serve_one_clientFunction · 0.70

Calls 1

credential_matchFunction · 0.85

Tested by

no test coverage detected