| 1174 | } |
| 1175 | |
| 1176 | const struct object_id *get_note(struct notes_tree *t, |
| 1177 | const struct object_id *oid) |
| 1178 | { |
| 1179 | struct leaf_node *found; |
| 1180 | |
| 1181 | if (!t) |
| 1182 | t = &default_notes_tree; |
| 1183 | assert(t->initialized); |
| 1184 | found = note_tree_find(t, t->root, 0, oid->hash); |
| 1185 | return found ? &found->val_oid : NULL; |
| 1186 | } |
| 1187 | |
| 1188 | int for_each_note(struct notes_tree *t, int flags, each_note_fn fn, |
| 1189 | void *cb_data) |
no test coverage detected