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

Function add_common

fetch-pack.c:1333–1342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1331}
1332
1333static void add_common(struct strbuf *req_buf, struct oidset *common)
1334{
1335 struct oidset_iter iter;
1336 const struct object_id *oid;
1337 oidset_iter_init(common, &iter);
1338
1339 while ((oid = oidset_iter_next(&iter))) {
1340 packet_buf_write(req_buf, "have %s\n", oid_to_hex(oid));
1341 }
1342}
1343
1344static int add_haves(struct fetch_negotiator *negotiator,
1345 struct strbuf *req_buf,

Callers 1

send_fetch_requestFunction · 0.85

Calls 4

oidset_iter_initFunction · 0.85
oidset_iter_nextFunction · 0.85
packet_buf_writeFunction · 0.85
oid_to_hexFunction · 0.85

Tested by

no test coverage detected