Patrick Steinhardt
7be9e410b2
commit-graph: stop passing in redundant repository
...
Many of the commit-graph related functions take in both a repository and
the object database source (directly or via `struct commit_graph`) for
which we are supposed to load such a commit-graph. In the best case this
information is simply redundant as the source already contains a
reference to its owning object database, which in turn has a reference
to its repository. In the worst case this information could even
mismatch when passing in a source that doesn't belong to the same
repository.
Refactor the code so that we only pass in the object database source in
those cases.
There is one exception though, namely `load_commit_graph_chain_fd_st()`,
which is responsible for loading a commit-graph chain. It is expected
that parts of the commit-graph chain aren't located in the same object
source as the chain file itself, but in a different one. Consequently,
this function doesn't work on the source level but on the database level
instead.
Signed-off-by: Patrick Steinhardt <ps@pks.im >
Signed-off-by: Junio C Hamano <gitster@pobox.com >
2025-08-15 09:34:48 -07:00
..
2025-08-04 08:10:33 -07:00
2025-07-23 08:15:20 -07:00
2024-10-25 14:02:36 -04:00
2025-07-01 14:58:24 -07:00
2024-10-11 09:37:18 -07:00
2025-07-01 14:46:38 -07:00
2024-12-06 20:20:02 +09:00
2025-08-04 08:10:33 -07:00
2025-07-23 08:15:21 -07:00
2025-04-15 08:24:35 -07:00
2024-12-13 07:33:36 -08:00
2025-08-05 11:53:55 -07:00
2025-07-23 08:15:18 -07:00
2025-07-23 08:15:22 -07:00
2025-07-23 08:15:22 -07:00
2025-01-17 13:30:03 -08:00
2025-07-23 08:15:22 -07:00
2025-07-23 08:15:22 -07:00
2025-08-05 11:53:55 -07:00
2025-07-23 08:15:22 -07:00
2025-07-23 08:15:21 -07:00
2025-07-23 08:15:18 -07:00
2025-08-15 09:34:48 -07:00
2025-07-23 08:15:22 -07:00
2025-08-15 09:34:48 -07:00
2025-07-23 08:15:21 -07:00
2025-08-05 11:53:55 -07:00
2025-07-23 08:15:20 -07:00
2024-11-01 12:53:19 -04:00
2025-07-23 08:15:20 -07:00
2025-07-23 08:15:22 -07:00
2025-07-23 08:15:18 -07:00
2025-04-15 08:24:35 -07:00
2025-07-23 08:15:18 -07:00
2025-07-23 08:15:18 -07:00
2025-03-03 08:17:47 -08:00
2025-07-23 08:15:18 -07:00
2025-07-23 08:15:18 -07:00
2025-07-01 14:46:38 -07:00
2025-08-04 08:10:33 -07:00
2025-08-05 11:53:55 -07:00
2025-06-04 08:52:25 -07:00
2025-07-23 08:15:20 -07:00
2025-07-23 08:15:18 -07:00
2025-08-04 08:10:33 -07:00
2024-12-06 20:20:04 +09:00
2025-08-05 11:53:55 -07:00
2025-07-23 08:15:22 -07:00
2025-08-05 11:53:55 -07:00
2025-01-17 13:30:03 -08:00
2025-07-23 08:15:22 -07:00
2025-07-23 08:15:22 -07:00
2025-07-23 08:15:22 -07:00
2025-07-23 08:15:22 -07:00
2025-08-05 11:53:55 -07:00
2025-04-24 17:25:34 -07:00
2025-07-23 08:15:22 -07:00
2025-08-04 08:10:33 -07:00
2025-07-23 08:15:22 -07:00
2025-07-01 14:58:24 -07:00
2025-07-23 08:15:22 -07:00
2024-12-18 10:44:31 -08:00
2025-01-17 13:30:03 -08:00
2025-07-23 08:15:22 -07:00
2025-08-05 11:53:55 -07:00
2025-01-17 13:30:03 -08:00
2025-01-17 13:30:03 -08:00
2025-04-08 13:59:11 -07:00
2025-07-23 08:15:22 -07:00
2025-08-15 09:34:48 -07:00
2025-08-05 11:53:55 -07:00
2025-07-16 22:16:15 -07:00
2025-07-23 08:15:22 -07:00
2025-07-23 08:15:18 -07:00
2025-07-23 08:15:18 -07:00
2025-08-05 11:53:55 -07:00
2025-08-05 11:53:55 -07:00
2025-07-15 15:18:18 -07:00
2025-07-23 08:15:22 -07:00
2025-07-23 08:15:22 -07:00
2024-09-13 14:33:30 -07:00
2025-08-05 11:53:55 -07:00
2025-08-04 08:10:33 -07:00
2025-07-23 08:15:18 -07:00
2025-07-23 08:15:18 -07:00
2025-07-23 08:15:22 -07:00
2025-08-04 08:10:33 -07:00
2025-08-05 11:53:55 -07:00
2025-08-04 08:10:33 -07:00
2025-07-23 08:15:18 -07:00
2025-01-17 13:30:03 -08:00
2025-01-17 13:30:03 -08:00
2025-08-04 08:10:33 -07:00
2025-08-04 08:10:33 -07:00
2025-08-05 11:53:55 -07:00
2025-06-05 08:35:22 -07:00
2025-07-23 08:15:18 -07:00
2025-08-04 08:10:33 -07:00
2025-08-04 08:10:33 -07:00
2025-07-23 08:15:18 -07:00
2025-04-24 17:25:34 -07:00
2025-07-23 08:15:22 -07:00
2025-07-23 08:15:22 -07:00
2025-07-23 08:15:18 -07:00
2025-07-23 08:15:18 -07:00
2025-07-01 14:58:24 -07:00
2025-07-23 08:15:22 -07:00
2025-07-23 08:15:18 -07:00
2025-08-04 08:10:33 -07:00
2025-07-23 08:15:18 -07:00
2025-08-05 11:53:56 -07:00
2025-07-23 08:15:22 -07:00
2025-08-05 11:53:55 -07:00
2025-07-23 08:15:22 -07:00
2025-08-05 11:53:55 -07:00
2025-07-23 08:15:18 -07:00
2025-07-23 08:15:22 -07:00
2025-07-23 08:15:22 -07:00
2025-01-17 13:30:03 -08:00
2024-12-18 10:44:30 -08:00
2025-07-23 08:15:22 -07:00
2025-07-23 08:15:22 -07:00
2025-07-23 08:15:22 -07:00
2025-07-23 08:15:22 -07:00
2025-07-23 08:15:21 -07:00
2025-07-23 08:15:22 -07:00