Commit 78ad917
remote-curl: refactor reading into rpc_state's buf
Currently, whenever remote-curl reads pkt-lines from its response file
descriptor, only the payload is written to its buf, not the 4 characters
denoting the length. A future patch will require the ability to also
write those 4 characters, so in preparation for that, refactor this read
into its own function.
Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent b359030 commit 78ad917
1 file changed
+24
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
520 | 520 | | |
521 | 521 | | |
522 | 522 | | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
523 | 542 | | |
524 | 543 | | |
525 | 544 | | |
| |||
529 | 548 | | |
530 | 549 | | |
531 | 550 | | |
532 | | - | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
533 | 554 | | |
534 | 555 | | |
535 | 556 | | |
536 | | - | |
537 | 557 | | |
538 | 558 | | |
539 | 559 | | |
| |||
677 | 697 | | |
678 | 698 | | |
679 | 699 | | |
680 | | - | |
681 | | - | |
682 | | - | |
| 700 | + | |
683 | 701 | | |
684 | | - | |
| 702 | + | |
685 | 703 | | |
686 | 704 | | |
687 | 705 | | |
688 | 706 | | |
689 | | - | |
690 | | - | |
691 | 707 | | |
692 | 708 | | |
693 | | - | |
694 | 709 | | |
695 | 710 | | |
696 | 711 | | |
| |||
0 commit comments