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

Function add_commit_patch_id

patch-ids.c:127–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127struct patch_id *add_commit_patch_id(struct commit *commit,
128 struct patch_ids *ids)
129{
130 struct patch_id *key;
131
132 if (!patch_id_defined(commit))
133 return NULL;
134
135 CALLOC_ARRAY(key, 1);
136 if (init_patch_id_entry(key, commit, ids)) {
137 free(key);
138 return NULL;
139 }
140
141 hashmap_add(&ids->patches, &key->ent);
142 return key;
143}

Callers 2

cherry_pick_listFunction · 0.85
get_patch_idsFunction · 0.85

Calls 3

patch_id_definedFunction · 0.85
init_patch_id_entryFunction · 0.85
hashmap_addFunction · 0.85

Tested by

no test coverage detected