Commit cbbe50d
committed
upload-pack: share more code
We mark the objects pointed at our refs with "OUR_REF" flag in two
functions (mark_our_ref() and send_ref()), but we can just use the
former as a helper for the latter.
Update the way mark_our_ref() prepares in-core object to use
lookup_unknown_object() to delay reading the actual object data,
just like we did in 435c833 (upload-pack: use peel_ref for ref
advertisements, 2012-10-04).
Signed-off-by: Junio C Hamano <[email protected]>1 parent 02f55e6 commit cbbe50d
1 file changed
+14
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
722 | 722 | | |
723 | 723 | | |
724 | 724 | | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
725 | 737 | | |
726 | 738 | | |
727 | 739 | | |
728 | 740 | | |
729 | 741 | | |
730 | | - | |
731 | 742 | | |
732 | 743 | | |
733 | 744 | | |
| 745 | + | |
| 746 | + | |
734 | 747 | | |
735 | 748 | | |
736 | 749 | | |
| |||
740 | 753 | | |
741 | 754 | | |
742 | 755 | | |
743 | | - | |
744 | | - | |
745 | | - | |
746 | | - | |
747 | 756 | | |
748 | 757 | | |
749 | 758 | | |
750 | 759 | | |
751 | 760 | | |
752 | | - | |
753 | | - | |
754 | | - | |
755 | | - | |
756 | | - | |
757 | | - | |
758 | | - | |
759 | | - | |
760 | | - | |
761 | | - | |
762 | | - | |
763 | | - | |
764 | 761 | | |
765 | 762 | | |
766 | 763 | | |
| |||
0 commit comments