| 1058 | } |
| 1059 | |
| 1060 | struct 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 | |
| 1075 | void init_display_notes(struct display_notes_opt *opt) |
| 1076 | { |
no test coverage detected