git/builtin
Patrick Steinhardt d81712ce65 object-file: get rid of the_repository in loose object iterators
The iterators for loose objects still rely on `the_repository`. Refactor
them:

  - `for_each_loose_file_in_objdir()` is refactored so that the caller
    is now expected to pass an `odb_source` as parameter instead of the
    path to that source. Furthermore, it is renamed accordingly to
    `for_each_loose_file_in_source()`.

  - `for_each_loose_object()` is refactored to take in an object
    database now and calls the above function in a loop.

This allows us to get rid of the global dependency.

Adjust callers accordingly.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2025-07-16 22:16:17 -07:00
..
2025-05-27 13:59:09 -07:00
2025-05-16 12:00:33 -07:00
2025-07-01 14:46:38 -07:00
2025-07-01 14:46:37 -07:00
2024-12-13 07:33:36 -08:00
2025-07-16 22:16:15 -07:00
2025-07-01 14:46:38 -07:00
2025-05-15 13:46:44 -07:00
2025-01-28 13:02:22 -08:00
2025-07-01 14:46:37 -07:00
2025-07-01 14:46:38 -07:00
2024-12-18 10:44:30 -08:00
2025-07-01 14:46:37 -07:00
2025-07-01 14:46:37 -07:00
2024-12-18 10:44:31 -08:00
2025-07-16 22:16:15 -07:00
2025-07-16 22:16:15 -07:00
2025-07-16 22:16:15 -07:00
2025-05-08 12:36:32 -07:00
2025-07-16 22:16:15 -07:00
2025-02-04 09:51:41 -08:00
2025-07-01 14:46:38 -07:00
2025-07-16 22:16:15 -07:00
2025-07-01 14:46:37 -07:00
2025-03-29 01:04:40 -07:00
2025-07-01 14:46:38 -07:00
2025-06-30 14:30:31 -07:00
2025-07-16 22:16:15 -07:00
2024-12-18 10:44:30 -08:00
2025-01-28 13:02:22 -08:00