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

Function write_note_data

builtin/notes.c:230–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228}
229
230static void write_note_data(struct note_data *d, struct object_id *oid)
231{
232 if (odb_write_object(the_repository->objects, d->buf.buf,
233 d->buf.len, OBJ_BLOB, oid)) {
234 int status = die_message(_("unable to write note object"));
235
236 if (d->edit_path)
237 die_message(_("the note contents have been left in %s"),
238 d->edit_path);
239 exit(status);
240 }
241}
242
243static void append_separator(struct strbuf *message)
244{

Callers 2

addFunction · 0.85
append_editFunction · 0.85

Calls 2

odb_write_objectFunction · 0.85
die_messageFunction · 0.85

Tested by

no test coverage detected