Commit a039a1f
maintenance: simplify prefetch logic
The previous logic filled a string list with the names of each remote,
but instead we could simply run the appropriate 'git fetch' data
directly in the remote iterator. Do this for reduced code size, but also
because it sets up an upcoming change to use the remote's refspec. This
data is accessible from the 'struct remote' data that is now accessible
in fetch_remote().
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 48bf2fa commit a039a1f
1 file changed
+8
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
873 | 873 | | |
874 | 874 | | |
875 | 875 | | |
876 | | - | |
| 876 | + | |
877 | 877 | | |
| 878 | + | |
878 | 879 | | |
879 | 880 | | |
880 | 881 | | |
881 | | - | |
| 882 | + | |
882 | 883 | | |
883 | 884 | | |
884 | 885 | | |
885 | 886 | | |
886 | 887 | | |
887 | 888 | | |
888 | | - | |
| 889 | + | |
889 | 890 | | |
890 | 891 | | |
891 | 892 | | |
892 | 893 | | |
893 | | - | |
894 | | - | |
895 | | - | |
896 | | - | |
897 | | - | |
898 | | - | |
899 | | - | |
900 | | - | |
901 | 894 | | |
902 | 895 | | |
903 | | - | |
904 | | - | |
905 | | - | |
906 | | - | |
907 | 896 | | |
908 | 897 | | |
909 | 898 | | |
910 | 899 | | |
911 | 900 | | |
912 | 901 | | |
913 | | - | |
914 | | - | |
915 | | - | |
916 | | - | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
917 | 905 | | |
918 | 906 | | |
919 | | - | |
920 | | - | |
921 | | - | |
922 | | - | |
923 | | - | |
924 | | - | |
| 907 | + | |
925 | 908 | | |
926 | 909 | | |
927 | 910 | | |
| |||
0 commit comments