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

Function get_note

notes.c:1176–1186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1174}
1175
1176const 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
1188int for_each_note(struct notes_tree *t, int flags, each_note_fn fn,
1189 void *cb_data)

Callers 8

format_noteFunction · 0.85
copy_noteFunction · 0.85
notes_cache_getFunction · 0.85
listFunction · 0.85
addFunction · 0.85
copyFunction · 0.85
append_editFunction · 0.85
showFunction · 0.85

Calls 1

note_tree_findFunction · 0.85

Tested by

no test coverage detected