aboutsummaryrefslogtreecommitdiff
path: root/environment.h
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-09-12 13:29:40 +0200
committerJunio C Hamano <gitster@pobox.com>2024-09-12 10:15:40 -0700
commitedc2c92624a5389836789579ff11417ca1c61ea0 (patch)
tree9597cdfadbcde959b6d119894a1b08d89ad6e690 /environment.h
parent14c90ac0885c2fd1668d64084975a9ab9ef86318 (diff)
downloadgit-edc2c92624a5389836789579ff11417ca1c61ea0.tar.xz
environment: make `get_git_work_tree()` accept a repository
The `get_git_work_tree()` function retrieves the path of the work tree of `the_repository`. Make it accept a `struct repository` such that it can work on arbitrary repositories and make it part of the repository subsystem. This reduces our reliance on `the_repository` and clarifies scope. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'environment.h')
-rw-r--r--environment.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/environment.h b/environment.h
index d12c48481b..52e1803aba 100644
--- a/environment.h
+++ b/environment.h
@@ -108,7 +108,6 @@ extern char *git_work_tree_cfg;
void set_git_dir(const char *path, int make_realpath);
const char *get_git_namespace(void);
const char *strip_namespace(const char *namespaced_ref);
-const char *get_git_work_tree(void);
void set_git_work_tree(const char *tree);
#define ALTERNATE_DB_ENVIRONMENT "GIT_ALTERNATE_OBJECT_DIRECTORIES"