Patrick Steinhardt
b4dedbc061
cache-tree: drop the_repository in cache_tree_fully_valid()
...
The function `cache_tree_fully_valid()` verifies whether the cache tree
owned by the index is valid or not. As part of that, the function checks
whether the objects referenced by the cache all exist. But because the
function has no repository available, it is using the object database of
`the_repository` instead.
We could of course adapt callers to pass in a repository as parameter
explicitly to get rid of this implicit dependency on global state. But
all of them pass the cache tree owned by a `struct index_state`, and
that structure already has a reference to its owning repository.
So instead, adapt the function to accept a `struct index_state`, which
ensures that callers will implicitly always pass the correct repository.
Adapt callers accordingly.
Suggested-by: Junio C Hamano <gitster@pobox.com >
Signed-off-by: Patrick Steinhardt <ps@pks.im >
Signed-off-by: Junio C Hamano <gitster@pobox.com >
2026-09-11 08:46:09 -07:00
..
2026-08-31 08:25:00 -07:00
2026-04-10 07:58:53 -07:00
2025-07-01 14:58:24 -07:00
2026-05-19 15:05:46 +09:00
2026-05-24 18:41:06 +09:00
2026-08-24 13:17:50 -07:00
2026-07-19 10:42:16 -07:00
2026-08-20 07:30:51 -07:00
2026-08-21 09:01:55 -07:00
2026-08-23 18:01:42 -07:00
2026-06-11 05:05:54 -07:00
2025-07-23 08:15:22 -07:00
2026-02-20 08:13:58 -08:00
2026-07-16 07:40:22 -07:00
2025-07-23 08:15:22 -07:00
2026-05-19 19:36:24 +09:00
2026-09-11 08:46:09 -07:00
2025-09-29 11:40:35 -07:00
2026-08-03 09:31:29 -07:00
2025-07-23 08:15:18 -07:00
2025-10-22 10:40:11 -07:00
2026-01-15 05:32:31 -08:00
2026-09-11 08:46:09 -07:00
2026-08-24 13:17:50 -07:00
2025-10-16 14:42:39 -07:00
2025-07-23 08:15:20 -07:00
2026-01-12 11:56:56 -08:00
2025-07-23 08:15:22 -07:00
2026-07-13 08:27:27 -07:00
2025-07-23 08:15:18 -07:00
2026-05-19 19:36:24 +09:00
2026-02-13 13:39:25 -08:00
2026-07-10 08:13:54 -07:00
2026-07-30 10:32:02 -07:00
2026-07-27 09:09:00 -07:00
2026-08-24 13:17:51 -07:00
2026-08-15 08:37:54 -07:00
2026-07-27 09:09:00 -07:00
2025-08-11 09:19:40 -07:00
2025-08-22 13:13:20 -07:00
2026-03-03 10:20:00 -08:00
2026-09-01 10:55:20 -07:00
2026-07-05 09:12:10 -07:00
2026-08-05 11:10:51 -07:00
2026-07-13 08:27:28 -07:00
2026-05-19 19:36:25 +09:00
2026-05-19 19:36:24 +09:00
2026-07-30 10:32:02 -07:00
2026-04-10 07:58:55 -07:00
2026-09-01 10:55:20 -07:00
2026-07-07 10:49:41 -07:00
2026-03-27 11:00:02 -07:00
2026-08-12 09:05:50 -07:00
2026-07-13 08:27:27 -07:00
2026-06-21 16:41:38 -07:00
2025-11-04 07:32:25 -08:00
2026-06-15 07:45:41 -07:00
2026-07-10 08:13:54 -07:00
2026-05-12 09:33:43 +09:00
2026-05-19 19:36:25 +09:00
2026-02-06 11:45:33 -08:00
2025-08-08 11:13:12 -07:00
2026-06-15 07:45:41 -07:00
2026-08-07 14:48:01 -07:00
2026-06-15 07:45:41 -07:00
2026-03-12 10:03:23 -07:00
2026-06-17 05:00:01 -07:00
2026-08-11 10:07:00 -07:00
2026-05-19 09:57:44 +09:00
2026-07-16 07:40:22 -07:00
2026-09-01 10:55:20 -07:00
2026-02-21 21:26:53 -08:00
2025-09-19 10:02:55 -07:00
2026-07-07 21:56:00 -07:00
2026-08-15 08:37:54 -07:00
2026-07-16 13:58:25 -07:00
2026-07-30 10:32:03 -07:00
2025-10-14 12:56:09 -07:00
2026-05-19 19:36:24 +09:00
2026-07-03 10:32:33 -07:00
2026-08-20 20:28:02 -07:00
2026-07-16 07:40:22 -07:00
2026-07-16 07:40:22 -07:00
2026-03-31 20:43:14 -07:00
2026-08-13 13:34:50 -07:00
2026-05-14 15:59:25 +09:00
2026-04-01 21:34:25 -07:00
2026-07-07 10:49:40 -07:00
2025-07-23 08:15:18 -07:00
2026-06-11 05:05:54 -07:00
2026-08-15 08:37:54 -07:00
2026-07-07 10:49:40 -07:00
2025-09-18 10:07:00 -07:00
2026-05-19 19:36:24 +09:00
2026-07-16 13:58:25 -07:00
2026-07-07 17:48:57 -07:00
2026-06-09 11:11:46 -07:00
2026-01-30 08:58:12 -08:00
2026-03-31 20:43:14 -07:00
2026-07-14 12:54:25 -07:00
2026-07-21 10:33:25 -07:00
2026-05-19 19:36:24 +09:00
2026-07-27 09:09:00 -07:00
2025-07-23 08:15:22 -07:00
2026-06-15 07:45:41 -07:00
2026-06-15 07:45:41 -07:00
2026-08-31 08:25:00 -07:00
2026-08-20 20:28:01 -07:00
2026-05-05 16:34:08 +09:00
2025-07-23 08:15:22 -07:00
2026-05-19 19:36:24 +09:00
2026-05-19 19:36:24 +09:00
2026-05-06 09:48:28 +09:00
2025-08-21 13:46:59 -07:00
2025-07-23 08:15:22 -07:00
2025-07-23 08:15:22 -07:00
2025-12-29 22:02:53 +09:00
2026-08-31 08:24:58 -07:00
2025-07-23 08:15:22 -07:00