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

Function parse_pack_header

builtin/receive-pack.c:2301–2319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2299}
2300
2301static const char *parse_pack_header(struct pack_header *hdr)
2302{
2303 switch (read_pack_header(0, hdr)) {
2304 case PH_ERROR_EOF:
2305 return "eof before pack header was fully read";
2306
2307 case PH_ERROR_PACK_SIGNATURE:
2308 return "protocol error (pack signature mismatch detected)";
2309
2310 case PH_ERROR_PROTOCOL:
2311 return "protocol error (pack version unsupported)";
2312
2313 default:
2314 return "unknown error in parse_pack_header";
2315
2316 case 0:
2317 return NULL;
2318 }
2319}
2320
2321static struct tempfile *pack_lockfile;
2322

Callers 1

unpackFunction · 0.70

Calls 1

read_pack_headerFunction · 0.85

Tested by

no test coverage detected