| line | true | false | branch | 
 
| 34 | 0 | 0 | GIT_ERROR_CHECK_ALLOC(pkt); | 
 
| 48 | 0 | 0 | GIT_ERROR_CHECK_ALLOC(pkt); | 
 
| 51 | 0 | 0 | if (git__prefixncmp(line, len, "ACK ")) | 
 
| 56 | 0 | 0 | if (len < GIT_OID_HEXSZ || git_oid_fromstr(&pkt->oid, line) < 0) | 
 
|  | 0 | 0 | if (len < GIT_OID_HEXSZ || git_oid_fromstr(&pkt->oid, line) < 0) | 
 
| 61 | 0 | 0 | if (len && line[0] == ' ') { | 
 
|  | 0 | 0 | if (len && line[0] == ' ') { | 
 
| 65 | 0 | 0 | if (!git__prefixncmp(line, len, "continue")) | 
 
| 67 | 0 | 0 | else if (!git__prefixncmp(line, len, "common")) | 
 
| 69 | 0 | 0 | else if (!git__prefixncmp(line, len, "ready")) | 
 
| 90 | 0 | 0 | GIT_ERROR_CHECK_ALLOC(pkt); | 
 
| 103 | 0 | 0 | GIT_ERROR_CHECK_ALLOC_ADD(&alloclen, sizeof(git_pkt_comment), len); | 
 
|  | 0 | 0 | GIT_ERROR_CHECK_ALLOC_ADD(&alloclen, sizeof(git_pkt_comment), len); | 
 
| 104 | 0 | 0 | GIT_ERROR_CHECK_ALLOC_ADD(&alloclen, alloclen, 1); | 
 
|  | 0 | 0 | GIT_ERROR_CHECK_ALLOC_ADD(&alloclen, alloclen, 1); | 
 
| 106 | 0 | 0 | GIT_ERROR_CHECK_ALLOC(pkt); | 
 
| 123 | 0 | 0 | if (git__prefixncmp(line, len, "ERR ")) | 
 
| 128 | 0 | 0 | GIT_ERROR_CHECK_ALLOC_ADD(&alloclen, sizeof(git_pkt_progress), len); | 
 
|  | 0 | 0 | GIT_ERROR_CHECK_ALLOC_ADD(&alloclen, sizeof(git_pkt_progress), len); | 
 
| 129 | 0 | 0 | GIT_ERROR_CHECK_ALLOC_ADD(&alloclen, alloclen, 1); | 
 
|  | 0 | 0 | GIT_ERROR_CHECK_ALLOC_ADD(&alloclen, alloclen, 1); | 
 
| 131 | 0 | 0 | GIT_ERROR_CHECK_ALLOC(pkt); | 
 
| 156 | 0 | 0 | GIT_ERROR_CHECK_ALLOC_ADD(&alloclen, sizeof(git_pkt_progress), len); | 
 
|  | 0 | 0 | GIT_ERROR_CHECK_ALLOC_ADD(&alloclen, sizeof(git_pkt_progress), len); | 
 
| 158 | 0 | 0 | GIT_ERROR_CHECK_ALLOC(pkt); | 
 
| 177 | 0 | 0 | GIT_ERROR_CHECK_ALLOC_ADD(&alloclen, sizeof(git_pkt_progress), len); | 
 
|  | 0 | 0 | GIT_ERROR_CHECK_ALLOC_ADD(&alloclen, sizeof(git_pkt_progress), len); | 
 
| 179 | 0 | 0 | GIT_ERROR_CHECK_ALLOC(pkt); | 
 
| 198 | 0 | 0 | GIT_ERROR_CHECK_ALLOC_ADD(&alloc_len, sizeof(git_pkt_err), len); | 
 
|  | 0 | 0 | GIT_ERROR_CHECK_ALLOC_ADD(&alloc_len, sizeof(git_pkt_err), len); | 
 
| 199 | 0 | 0 | GIT_ERROR_CHECK_ALLOC_ADD(&alloc_len, alloc_len, 1); | 
 
|  | 0 | 0 | GIT_ERROR_CHECK_ALLOC_ADD(&alloc_len, alloc_len, 1); | 
 
| 201 | 0 | 0 | GIT_ERROR_CHECK_ALLOC(pkt); | 
 
| 222 | 0 | 0 | GIT_ERROR_CHECK_ALLOC(pkt); | 
 
| 225 | 0 | 0 | if (len < GIT_OID_HEXSZ || git_oid_fromstr(&pkt->head.oid, line) < 0) | 
 
|  | 0 | 0 | if (len < GIT_OID_HEXSZ || git_oid_fromstr(&pkt->head.oid, line) < 0) | 
 
| 230 | 0 | 0 | if (git__prefixncmp(line, len, " ")) | 
 
| 235 | 0 | 0 | if (!len) | 
 
| 238 | 0 | 0 | if (line[len - 1] == '\n') | 
 
| 241 | 0 | 0 | GIT_ERROR_CHECK_ALLOC_ADD(&alloclen, len, 1); | 
 
|  | 0 | 0 | GIT_ERROR_CHECK_ALLOC_ADD(&alloclen, len, 1); | 
 
| 243 | 0 | 0 | GIT_ERROR_CHECK_ALLOC(pkt->head.name); | 
 
| 248 | 0 | 0 | if (strlen(pkt->head.name) < len) | 
 
| 256 | 0 | 0 | if (pkt) | 
 
| 268 | 0 | 0 | GIT_ERROR_CHECK_ALLOC(pkt); | 
 
| 271 | 0 | 0 | if (git__prefixncmp(line, len, "ok ")) | 
 
| 276 | 0 | 0 | if (len && line[len - 1] == '\n') | 
 
|  | 0 | 0 | if (len && line[len - 1] == '\n') | 
 
| 279 | 0 | 0 | GIT_ERROR_CHECK_ALLOC_ADD(&alloc_len, len, 1); | 
 
|  | 0 | 0 | GIT_ERROR_CHECK_ALLOC_ADD(&alloc_len, len, 1); | 
 
| 281 | 0 | 0 | GIT_ERROR_CHECK_ALLOC(pkt->ref); | 
 
| 302 | 0 | 0 | GIT_ERROR_CHECK_ALLOC(pkt); | 
 
| 309 | 0 | 0 | if (git__prefixncmp(line, len, "ng ")) | 
 
| 313 | 0 | 0 | if (!(ptr = memchr(line, ' ', eol - line))) | 
 
| 317 | 0 | 0 | GIT_ERROR_CHECK_ALLOC_ADD(&alloclen, len, 1); | 
 
|  | 0 | 0 | GIT_ERROR_CHECK_ALLOC_ADD(&alloclen, len, 1); | 
 
| 319 | 0 | 0 | GIT_ERROR_CHECK_ALLOC(pkt->ref); | 
 
| 325 | 0 | 0 | if (line >= eol) | 
 
| 328 | 0 | 0 | if (!(ptr = memchr(line, '\n', eol - line))) | 
 
| 332 | 0 | 0 | GIT_ERROR_CHECK_ALLOC_ADD(&alloclen, len, 1); | 
 
|  | 0 | 0 | GIT_ERROR_CHECK_ALLOC_ADD(&alloclen, len, 1); | 
 
| 334 | 0 | 0 | GIT_ERROR_CHECK_ALLOC(pkt->msg); | 
 
| 354 | 0 | 0 | GIT_ERROR_CHECK_ALLOC(pkt); | 
 
| 357 | 0 | 0 | if (!git__prefixncmp(line, len, "unpack ok")) | 
 
| 374 | 0 | 0 | if (linelen < PKT_LEN_SIZE) | 
 
| 380 | 0 | 0 | for (i = 0; i < PKT_LEN_SIZE; ++i) { | 
 
| 381 | 0 | 0 | if (!isxdigit(num[i])) { | 
 
| 383 | 0 | 0 | for (k = 0; k < PKT_LEN_SIZE; ++k) { | 
 
| 384 | 0 | 0 | if(!isprint(num[k])) { | 
 
| 394 | 0 | 0 | if ((error = git__strntol32(&len, num, PKT_LEN_SIZE, &num_end, 16)) < 0) | 
 
| 397 | 0 | 0 | if (len < 0) | 
 
| 423 | 0 | 0 | if ((error = parse_len(&len, line, linelen)) < 0) { | 
 
| 430 | 0 | 0 | if (error == GIT_EBUFS) | 
 
| 432 | 0 | 0 | else if (!git__prefixncmp(line, linelen, "PACK")) | 
 
| 443 | 0 | 0 | if (linelen < len) | 
 
| 451 | 0 | 0 | if (len != 0 && len < PKT_LEN_SIZE) | 
 
|  | 0 | 0 | if (len != 0 && len < PKT_LEN_SIZE) | 
 
| 460 | 0 | 0 | if (len == PKT_LEN_SIZE) { | 
 
| 465 | 0 | 0 | if (len == 0) { /* Flush pkt */ | 
 
| 472 | 0 | 0 | if (*line == GIT_SIDE_BAND_DATA) | 
 
| 474 | 0 | 0 | else if (*line == GIT_SIDE_BAND_PROGRESS) | 
 
| 476 | 0 | 0 | else if (*line == GIT_SIDE_BAND_ERROR) | 
 
| 478 | 0 | 0 | else if (!git__prefixncmp(line, len, "ACK")) | 
 
| 480 | 0 | 0 | else if (!git__prefixncmp(line, len, "NAK")) | 
 
| 482 | 0 | 0 | else if (!git__prefixncmp(line, len, "ERR")) | 
 
| 484 | 0 | 0 | else if (*line == '#') | 
 
| 486 | 0 | 0 | else if (!git__prefixncmp(line, len, "ok")) | 
 
| 488 | 0 | 0 | else if (!git__prefixncmp(line, len, "ng")) | 
 
| 490 | 0 | 0 | else if (!git__prefixncmp(line, len, "unpack")) | 
 
| 502 | 0 | 0 | if (pkt == NULL) { | 
 
| 505 | 0 | 0 | if (pkt->type == GIT_PKT_REF) { | 
 
| 511 | 0 | 0 | if (pkt->type == GIT_PKT_OK) { | 
 
| 516 | 0 | 0 | if (pkt->type == GIT_PKT_NG) { | 
 
| 537 | 0 | 0 | if (caps->multi_ack_detailed) | 
 
| 539 | 0 | 0 | else if (caps->multi_ack) | 
 
| 543 | 0 | 0 | if (caps->side_band_64k) | 
 
| 545 | 0 | 0 | else if (caps->side_band) | 
 
| 548 | 0 | 0 | if (caps->include_tag) | 
 
| 551 | 0 | 0 | if (caps->thin_pack) | 
 
| 554 | 0 | 0 | if (caps->ofs_delta) | 
 
| 557 | 0 | 0 | if (git_buf_oom(&str)) | 
 
| 563 | 0 | 0 | if (len > 0xffff) { | 
 
| 575 | 0 | 0 | GIT_ERROR_CHECK_ALLOC_BUF(buf); | 
 
|  | 0 | 0 | GIT_ERROR_CHECK_ALLOC_BUF(buf); | 
 
| 594 | 0 | 0 | if (caps->common) { | 
 
| 595 | 0 | 0 | for (; i < count; ++i) { | 
 
| 597 | 0 | 0 | if (!head->local) | 
 
| 601 | 0 | 0 | if (buffer_want_with_caps(refs[i], caps, buf) < 0) | 
 
| 607 | 0 | 0 | for (; i < count; ++i) { | 
 
| 611 | 0 | 0 | if (head->local) | 
 
| 618 | 0 | 0 | if (git_buf_oom(buf)) |