Commit 445952b
packfile: refactor
The function `find_pack_entry()` doesn't work on a specific packfile
store, but instead works on the whole repository. This causes a bit of a
conceptual mismatch in its callers:
- `packfile_store_freshen_object()` supposedly acts on a store, and
its callers know to iterate through all sources already.
- `packfile_store_read_object_info()` behaves likewise.
The only exception that doesn't know to handle iteration through sources
is `has_object_pack()`, but that function is trivial to adapt.
Refactor the code so that `find_pack_entry()` works on the packfile
store level instead.
Signed-off-by: Patrick Steinhardt <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>find_pack_entry() to work on the packfile store1 parent 4020dff commit 445952b
1 file changed
+23
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2087 | 2087 | | |
2088 | 2088 | | |
2089 | 2089 | | |
2090 | | - | |
| 2090 | + | |
2091 | 2091 | | |
2092 | 2092 | | |
2093 | 2093 | | |
2094 | | - | |
2095 | | - | |
2096 | | - | |
2097 | | - | |
2098 | | - | |
2099 | | - | |
2100 | | - | |
| 2094 | + | |
2101 | 2095 | | |
2102 | | - | |
2103 | | - | |
| 2096 | + | |
| 2097 | + | |
| 2098 | + | |
2104 | 2099 | | |
2105 | | - | |
2106 | | - | |
| 2100 | + | |
| 2101 | + | |
2107 | 2102 | | |
2108 | | - | |
2109 | | - | |
2110 | | - | |
2111 | | - | |
2112 | | - | |
| 2103 | + | |
| 2104 | + | |
| 2105 | + | |
| 2106 | + | |
2113 | 2107 | | |
2114 | 2108 | | |
2115 | 2109 | | |
| |||
2120 | 2114 | | |
2121 | 2115 | | |
2122 | 2116 | | |
2123 | | - | |
| 2117 | + | |
2124 | 2118 | | |
2125 | 2119 | | |
2126 | 2120 | | |
| |||
2141 | 2135 | | |
2142 | 2136 | | |
2143 | 2137 | | |
2144 | | - | |
| 2138 | + | |
2145 | 2139 | | |
2146 | 2140 | | |
2147 | 2141 | | |
| |||
2217 | 2211 | | |
2218 | 2212 | | |
2219 | 2213 | | |
| 2214 | + | |
2220 | 2215 | | |
2221 | | - | |
| 2216 | + | |
| 2217 | + | |
| 2218 | + | |
| 2219 | + | |
| 2220 | + | |
| 2221 | + | |
| 2222 | + | |
| 2223 | + | |
| 2224 | + | |
2222 | 2225 | | |
2223 | 2226 | | |
2224 | 2227 | | |
| |||
0 commit comments