]> git.ipfire.org Git - thirdparty/git.git/commit
Merge branch 'ps/refs-without-the-repository-updates'
authorJunio C Hamano <gitster@pobox.com>
Thu, 30 May 2024 21:15:12 +0000 (14:15 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 30 May 2024 21:15:13 +0000 (14:15 -0700)
commit988499e2955f052fa5f58434e13d12285cb8a361
treead9543a7d40203b97f72a37ed85c6eb7395ce88f
parent67ce50ba26507e99c53dcd4b1d85ad8565a31c23
parent00892786b83936ec53d7d38df9bfc4e180fc2e19
Merge branch 'ps/refs-without-the-repository-updates'

Further clean-up the refs subsystem to stop relying on
the_repository, and instead use the repository associated to the
ref_store object.

* ps/refs-without-the-repository-updates:
  refs/packed: remove references to `the_hash_algo`
  refs/files: remove references to `the_hash_algo`
  refs/files: use correct repository
  refs: remove `dwim_log()`
  refs: drop `git_default_branch_name()`
  refs: pass repo when peeling objects
  refs: move object peeling into "object.c"
  refs: pass ref store when detecting dangling symrefs
  refs: convert iteration over replace refs to accept ref store
  refs: retrieve worktree ref stores via associated repository
  refs: refactor `resolve_gitlink_ref()` to accept a repository
  refs: pass repo when retrieving submodule ref store
  refs: track ref stores via strmap
  refs: implement releasing ref storages
  refs: rename `init_db` callback to avoid confusion
  refs: adjust names for `init` and `init_db` callbacks
20 files changed:
attr.c
builtin/clone.c
builtin/fetch.c
builtin/pack-objects.c
builtin/remote.c
builtin/replace.c
builtin/worktree.c
midx-write.c
object.h
ref-filter.c
refs.c
refs.h
refs/debug.c
refs/files-backend.c
refs/packed-backend.c
refs/refs-internal.h
refs/reftable-backend.c
repository.c
setup.c
t/helper/test-ref-store.c