MCPcopy Create free account
hub / github.com/git/git / copy_obj_to_fd

Function copy_obj_to_fd

builtin/notes.c:151–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151static void copy_obj_to_fd(int fd, const struct object_id *oid)
152{
153 size_t size;
154 enum object_type type;
155 char *buf = odb_read_object(the_repository->objects, oid, &type, &size);
156 if (buf) {
157 if (size)
158 write_or_die(fd, buf, size);
159 free(buf);
160 }
161}
162
163static void write_commented_object(int fd, const struct object_id *object)
164{

Callers 1

prepare_note_dataFunction · 0.85

Calls 2

odb_read_objectFunction · 0.85
write_or_dieFunction · 0.85

Tested by

no test coverage detected