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

Function next_flush

fetch-pack.c:277–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275#define LARGE_FLUSH 16384
276
277static int next_flush(int stateless_rpc, int count)
278{
279 if (stateless_rpc) {
280 if (count < LARGE_FLUSH)
281 count <<= 1;
282 else
283 count = count * 11 / 10;
284 } else {
285 if (count < PIPESAFE_FLUSH)
286 count <<= 1;
287 else
288 count += PIPESAFE_FLUSH;
289 }
290 return count;
291}
292
293static void mark_tips(struct fetch_negotiator *negotiator,
294 const struct oid_array *negotiation_restrict_tips)

Callers 2

find_commonFunction · 0.85
add_havesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected