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

Function load_notes_trees

notes.c:1060–1073  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1058}
1059
1060struct notes_tree **load_notes_trees(struct string_list *refs, int flags)
1061{
1062 struct string_list_item *item;
1063 int counter = 0;
1064 struct notes_tree **trees;
1065 ALLOC_ARRAY(trees, refs->nr + 1);
1066 for_each_string_list_item(item, refs) {
1067 struct notes_tree *t = xcalloc(1, sizeof(struct notes_tree));
1068 init_notes(t, item->string, combine_notes_ignore, flags);
1069 trees[counter++] = t;
1070 }
1071 trees[counter] = NULL;
1072 return trees;
1073}
1074
1075void init_display_notes(struct display_notes_opt *opt)
1076{

Callers 2

load_display_notesFunction · 0.85

Calls 2

xcallocFunction · 0.85
init_notesFunction · 0.85

Tested by

no test coverage detected