diff options
| author | Patrick Steinhardt <ps@pks.im> | 2024-09-12 13:29:54 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-09-12 10:15:41 -0700 |
| commit | a52beae3a319e8133be0fe245e5fb3b9e7d8d9fb (patch) | |
| tree | f130e8073622c4abd7bdb048c9102520856dbf7d /environment.h | |
| parent | environment: make `get_git_namespace()` self-contained (diff) | |
| download | git-a52beae3a319e8133be0fe245e5fb3b9e7d8d9fb.tar.gz git-a52beae3a319e8133be0fe245e5fb3b9e7d8d9fb.zip | |
environment: move `set_git_dir()` and related into setup layer
The functions `set_git_dir()` and friends are used to set up
repositories. As such, they are quite clearly part of the setup
subsystem, but still live in "environment.c". Move them over, which also
helps to get rid of dependencies on `the_repository` in the environment
subsystem.
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.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/environment.h b/environment.h index 682d4f2e3b..b846039679 100644 --- a/environment.h +++ b/environment.h @@ -105,10 +105,8 @@ int have_git_dir(void); extern int is_bare_repository_cfg; int is_bare_repository(void); 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); -void set_git_work_tree(const char *tree); #define ALTERNATE_DB_ENVIRONMENT "GIT_ALTERNATE_OBJECT_DIRECTORIES" |
