summaryrefslogtreecommitdiffstats
path: root/contrib/persistent-https
diff options
context:
space:
mode:
authorShreyansh Paliwal <shreyanshpaliwalcmsmn@gmail.com>2026-04-04 19:28:39 +0530
committerJunio C Hamano <gitster@pobox.com>2026-04-08 09:58:10 -0700
commit9a03f165a41d708c672e18e69d43f69689981e7d (patch)
tree08105bde9f44b570cebce5464a8ca35cd5a44002 /contrib/persistent-https
parentb886f0b5dc71030bc9dcf58376533cf8e1098e9a (diff)
downloadgit-9a03f165a41d708c672e18e69d43f69689981e7d.tar.gz
git-9a03f165a41d708c672e18e69d43f69689981e7d.zip
refs: remove the_hash_algo global state
refs.c uses the_hash_algo in multiple places, relying on global state for the object hash algorithm. Replace these uses with the appropriate repository-specific hash_algo. In transaction-related functions (ref_transaction_create, ref_transaction_delete, migrate_one_ref, and transaction_hook_feed_stdin), use transaction->ref_store->repo->hash_algo. In other cases, such as repo_get_submodule_ref_store(), use repo->hash_algo. Signed-off-by: Shreyansh Paliwal <shreyanshpaliwalcmsmn@gmail.com> Acked-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions