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

Function init_patch_ids

patch-ids.c:69–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69int init_patch_ids(struct repository *r, struct patch_ids *ids)
70{
71 memset(ids, 0, sizeof(*ids));
72 repo_diff_setup(r, &ids->diffopts);
73 ids->diffopts.detect_rename = 0;
74 ids->diffopts.flags.recursive = 1;
75 diff_setup_done(&ids->diffopts);
76 hashmap_init(&ids->patches, patch_id_neq, &ids->diffopts, 256);
77 return 0;
78}
79
80int free_patch_ids(struct patch_ids *ids)
81{

Callers 2

cherry_pick_listFunction · 0.85
get_patch_idsFunction · 0.85

Calls 3

repo_diff_setupFunction · 0.85
diff_setup_doneFunction · 0.85
hashmap_initFunction · 0.85

Tested by

no test coverage detected