| 228 | } |
| 229 | |
| 230 | static 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 | |
| 243 | static void append_separator(struct strbuf *message) |
| 244 | { |
no test coverage detected