Commit 2813c97
treewide: enumerate promisor objects via
We have multiple callsites where we enumerate all promisor objects in
the object database via `for_each_packed_object()`. This is done by
passing the `ODB_FOR_EACH_OBJECT_PROMISOR_ONLY` flag, which causes us to
skip over all non-promisor objects.
These callsites can be trivially converted to `odb_for_each_object()` as
we know to skip enumeration of loose objects in case the `PROMISOR_ONLY`
flag was passed by the caller.
Refactor the sites accordingly.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>odb_for_each_object()
1 parent cc47e3d commit 2813c97
3 files changed
Lines changed: 30 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2411 | 2411 | | |
2412 | 2412 | | |
2413 | 2413 | | |
| 2414 | + | |
| 2415 | + | |
| 2416 | + | |
| 2417 | + | |
| 2418 | + | |
2414 | 2419 | | |
2415 | | - | |
2416 | | - | |
2417 | | - | |
| 2420 | + | |
| 2421 | + | |
2418 | 2422 | | |
2419 | | - | |
| 2423 | + | |
2420 | 2424 | | |
2421 | 2425 | | |
2422 | 2426 | | |
2423 | | - | |
| 2427 | + | |
2424 | 2428 | | |
2425 | 2429 | | |
2426 | 2430 | | |
2427 | 2431 | | |
2428 | | - | |
| 2432 | + | |
2429 | 2433 | | |
2430 | 2434 | | |
2431 | 2435 | | |
2432 | 2436 | | |
2433 | 2437 | | |
2434 | 2438 | | |
2435 | | - | |
| 2439 | + | |
2436 | 2440 | | |
2437 | 2441 | | |
2438 | 2442 | | |
| |||
2450 | 2454 | | |
2451 | 2455 | | |
2452 | 2456 | | |
2453 | | - | |
| 2457 | + | |
2454 | 2458 | | |
2455 | 2459 | | |
2456 | 2460 | | |
2457 | 2461 | | |
2458 | 2462 | | |
2459 | 2463 | | |
2460 | | - | |
| 2464 | + | |
2461 | 2465 | | |
2462 | | - | |
| 2466 | + | |
2463 | 2467 | | |
2464 | 2468 | | |
2465 | | - | |
| 2469 | + | |
2466 | 2470 | | |
2467 | 2471 | | |
2468 | 2472 | | |
| |||
2474 | 2478 | | |
2475 | 2479 | | |
2476 | 2480 | | |
2477 | | - | |
2478 | | - | |
2479 | | - | |
2480 | | - | |
| 2481 | + | |
| 2482 | + | |
| 2483 | + | |
| 2484 | + | |
| 2485 | + | |
| 2486 | + | |
| 2487 | + | |
2481 | 2488 | | |
2482 | 2489 | | |
2483 | 2490 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
| 20 | + | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
| 58 | + | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3626 | 3626 | | |
3627 | 3627 | | |
3628 | 3628 | | |
3629 | | - | |
3630 | | - | |
| 3629 | + | |
3631 | 3630 | | |
3632 | 3631 | | |
3633 | 3632 | | |
| |||
3936 | 3935 | | |
3937 | 3936 | | |
3938 | 3937 | | |
3939 | | - | |
3940 | | - | |
3941 | | - | |
3942 | | - | |
| 3938 | + | |
| 3939 | + | |
| 3940 | + | |
3943 | 3941 | | |
3944 | 3942 | | |
3945 | 3943 | | |
| |||
0 commit comments