refs: drop all references to `the_repository`
In "ps/refs-without-the-repository", we have removed all functions in
the refs API that could be trivially converted to accept a proper ref
store as input. This was a mechanical change, and because the resulting
patches were quite large by themselves already, I decided to push out
further dependencies on the_repository
in refs-related code to a
follow up.
This patch series here is that follow-up and removes all references to
the_repository
in "refs.c" and "refs/". This includes both explicit
use of the_repository
, but also implicit use via the_hash_algo
.
The series is based on 19fe900c (The fourth batch, 2024-05-15) and pulls in "ps/refs-without-the-repository" at c8f815c2 (refs: remove functions without ref store, 2024-05-07) as dependency. It applies cleanly to both next and seen at the current point in time.