Commit 317ea9a
treewide: drop uses of
We're using `for_each_loose_object()` and `for_each_packed_object()` at
a couple of callsites to enumerate all loose and packed objects,
respectively. These functions will be removed in a subsequent commit in
favor of the newly introduced `odb_source_loose_for_each_object()` and
`packfile_store_for_each_object()` replacements.
Prepare for this by refactoring the sites accordingly.
Note that ideally, we'd convert all callsites to use the generic
`odb_for_each_object()` function already. But for some callers this is
not possible (yet), and it would require some significant refactorings
to make this work. Converting these site will thus be deferred to a
later patch series.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>for_each_{loose,packed}_object()
1 parent 2813c97 commit 317ea9a
2 files changed
Lines changed: 59 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
806 | 806 | | |
807 | 807 | | |
808 | 808 | | |
809 | | - | |
810 | | - | |
811 | | - | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
812 | 812 | | |
813 | 813 | | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
814 | 817 | | |
815 | 818 | | |
816 | 819 | | |
| |||
846 | 849 | | |
847 | 850 | | |
848 | 851 | | |
| 852 | + | |
849 | 853 | | |
850 | | - | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
851 | 867 | | |
852 | 868 | | |
853 | 869 | | |
| |||
861 | 877 | | |
862 | 878 | | |
863 | 879 | | |
864 | | - | |
865 | | - | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
866 | 888 | | |
867 | 889 | | |
868 | 890 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1479 | 1479 | | |
1480 | 1480 | | |
1481 | 1481 | | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
| 1493 | + | |
| 1494 | + | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
1482 | 1500 | | |
1483 | 1501 | | |
1484 | 1502 | | |
1485 | 1503 | | |
1486 | 1504 | | |
1487 | | - | |
1488 | 1505 | | |
1489 | 1506 | | |
1490 | 1507 | | |
1491 | 1508 | | |
1492 | | - | |
1493 | | - | |
1494 | | - | |
1495 | 1509 | | |
1496 | 1510 | | |
1497 | 1511 | | |
1498 | 1512 | | |
1499 | | - | |
1500 | | - | |
1501 | | - | |
1502 | | - | |
1503 | | - | |
1504 | | - | |
1505 | | - | |
| 1513 | + | |
1506 | 1514 | | |
1507 | 1515 | | |
1508 | 1516 | | |
| |||
1959 | 1967 | | |
1960 | 1968 | | |
1961 | 1969 | | |
| 1970 | + | |
| 1971 | + | |
| 1972 | + | |
| 1973 | + | |
| 1974 | + | |
| 1975 | + | |
1962 | 1976 | | |
1963 | 1977 | | |
1964 | 1978 | | |
1965 | 1979 | | |
1966 | 1980 | | |
1967 | | - | |
1968 | | - | |
| 1981 | + | |
| 1982 | + | |
| 1983 | + | |
| 1984 | + | |
| 1985 | + | |
| 1986 | + | |
1969 | 1987 | | |
1970 | 1988 | | |
1971 | 1989 | | |
| |||
0 commit comments