]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'ps/path-sans-the-repository'
authorJunio C Hamano <gitster@pobox.com>
Wed, 5 Mar 2025 18:37:43 +0000 (10:37 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 5 Mar 2025 18:37:43 +0000 (10:37 -0800)
The path.[ch] API takes an explicit repository parameter passed
throughout the callchain, instead of relying on the_repository
singleton instance.

* ps/path-sans-the-repository:
  path: adjust last remaining users of `the_repository`
  environment: move access to "core.sharedRepository" into repo settings
  environment: move access to "core.hooksPath" into repo settings
  repo-settings: introduce function to clear struct
  path: drop `git_path()` in favor of `repo_git_path()`
  rerere: let `rerere_path()` write paths into a caller-provided buffer
  path: drop `git_common_path()` in favor of `repo_common_path()`
  worktree: return allocated string from `get_worktree_git_dir()`
  path: drop `git_path_buf()` in favor of `repo_git_path_replace()`
  path: drop `git_pathdup()` in favor of `repo_git_path()`
  path: drop unused `strbuf_git_path()` function
  path: refactor `repo_submodule_path()` family of functions
  submodule: refactor `submodule_to_gitdir()` to accept a repo
  path: refactor `repo_worktree_path()` family of functions
  path: refactor `repo_git_path()` family of functions
  path: refactor `repo_common_path()` family of functions

17 files changed:
1  2 
builtin/clone.c
builtin/fast-import.c
builtin/gc.c
builtin/receive-pack.c
builtin/remote.c
config.c
dir.c
environment.c
object-file.c
pack-write.c
read-cache.c
refs.c
refs/reftable-backend.c
remote.c
rerere.c
setup.c
worktree.c

diff --cc builtin/clone.c
Simple merge
Simple merge
diff --cc builtin/gc.c
Simple merge
Simple merge
Simple merge
diff --cc config.c
Simple merge
diff --cc dir.c
Simple merge
diff --cc environment.c
Simple merge
diff --cc object-file.c
Simple merge
diff --cc pack-write.c
Simple merge
diff --cc read-cache.c
Simple merge
diff --cc refs.c
Simple merge
Simple merge
diff --cc remote.c
Simple merge
diff --cc rerere.c
Simple merge
diff --cc setup.c
Simple merge
diff --cc worktree.c
Simple merge