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

Function feed_object

send-pack.c:45–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45static void feed_object(struct repository *r,
46 const struct object_id *oid, FILE *fh, int negative)
47{
48 if (negative && !odb_has_object(r->objects, oid, 0))
49 return;
50
51 if (negative)
52 putc('^', fh);
53 fputs(oid_to_hex(oid), fh);
54 putc('\n', fh);
55}
56
57/*
58 * Make a pack stream and spit it out into file descriptor fd

Callers 1

pack_objectsFunction · 0.85

Calls 2

odb_has_objectFunction · 0.85
oid_to_hexFunction · 0.85

Tested by

no test coverage detected