Commit dd097bb
builtin/pack-objects: use
When enumerating objects that are supposed to be stored in a new cruft
pack we use `for_each_packed_object()` and then derive each object's
mtime individually. Refactor this logic to instead use the new
`packfile_store_for_each_object()` function with an object info request
that asks for the respective mtimes.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>packfile_store_for_each_object()
1 parent 7b7cbae commit dd097bb
1 file changed
Lines changed: 22 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4314 | 4314 | | |
4315 | 4315 | | |
4316 | 4316 | | |
4317 | | - | |
4318 | | - | |
| 4317 | + | |
4319 | 4318 | | |
4320 | 4319 | | |
4321 | 4320 | | |
4322 | | - | |
4323 | | - | |
4324 | | - | |
4325 | | - | |
4326 | | - | |
4327 | | - | |
4328 | | - | |
4329 | | - | |
4330 | | - | |
4331 | | - | |
4332 | | - | |
4333 | | - | |
4334 | | - | |
4335 | | - | |
| 4321 | + | |
| 4322 | + | |
4336 | 4323 | | |
4337 | 4324 | | |
4338 | 4325 | | |
| |||
4341 | 4328 | | |
4342 | 4329 | | |
4343 | 4330 | | |
4344 | | - | |
4345 | | - | |
4346 | | - | |
4347 | | - | |
4348 | | - | |
4349 | | - | |
4350 | | - | |
4351 | | - | |
| 4331 | + | |
| 4332 | + | |
| 4333 | + | |
| 4334 | + | |
| 4335 | + | |
| 4336 | + | |
| 4337 | + | |
| 4338 | + | |
| 4339 | + | |
| 4340 | + | |
| 4341 | + | |
| 4342 | + | |
| 4343 | + | |
| 4344 | + | |
| 4345 | + | |
| 4346 | + | |
| 4347 | + | |
| 4348 | + | |
| 4349 | + | |
4352 | 4350 | | |
4353 | 4351 | | |
4354 | 4352 | | |
| |||
0 commit comments