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

Function packet_trace_pack

pkt-line.c:26–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26static int packet_trace_pack(const char *buf, unsigned int len, int sideband)
27{
28 if (!sideband) {
29 trace_verbatim(&trace_pack, buf, len);
30 return 1;
31 } else if (len && *buf == '\1') {
32 trace_verbatim(&trace_pack, buf + 1, len - 1);
33 return 1;
34 } else {
35 /* it's another non-pack sideband */
36 return 0;
37 }
38}
39
40static void packet_trace(const char *buf, unsigned int len, int write)
41{

Callers 1

packet_traceFunction · 0.85

Calls 1

trace_verbatimFunction · 0.85

Tested by

no test coverage detected