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

Function init_patch_id_entry

patch-ids.c:86–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86static int init_patch_id_entry(struct patch_id *patch,
87 struct commit *commit,
88 struct patch_ids *ids)
89{
90 struct object_id header_only_patch_id;
91
92 patch->commit = commit;
93 if (commit_patch_id(commit, &ids->diffopts, &header_only_patch_id, 1))
94 return -1;
95
96 hashmap_entry_init(&patch->ent, oidhash(&header_only_patch_id));
97 return 0;
98}
99
100struct patch_id *patch_id_iter_first(struct commit *commit,
101 struct patch_ids *ids)

Callers 2

patch_id_iter_firstFunction · 0.85
add_commit_patch_idFunction · 0.85

Calls 3

commit_patch_idFunction · 0.85
hashmap_entry_initFunction · 0.85
oidhashFunction · 0.85

Tested by

no test coverage detected