diff options
| author | Patrick Steinhardt <ps@pks.im> | 2025-02-07 12:03:40 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-02-28 13:54:11 -0800 |
| commit | f1ce861c34bffbc02998173016b0bca0f6d9f6c4 (patch) | |
| tree | 7b929e44dad459db118dd68774f293e0d412cb76 /environment.h | |
| parent | 6f3fbed8eda577703426d77dacc71ce0ba46634e (diff) | |
| download | git-f1ce861c34bffbc02998173016b0bca0f6d9f6c4.tar.xz | |
environment: move access to "core.sharedRepository" into repo settings
Similar as with the preceding commit, we track "core.sharedRepository"
via a pair of global variables. Move them into `struct repo_settings` so
that we can instead track them per-repository.
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 | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/environment.h b/environment.h index 66989afbac..45e690f203 100644 --- a/environment.h +++ b/environment.h @@ -134,16 +134,6 @@ void setup_git_env(const char *git_dir); */ int have_git_dir(void); -/* - * Accessors for the core.sharedrepository config which lazy-load the value - * from the config (if not already set). The "reset" function can be - * used to unset "set" or cached value, meaning that the value will be loaded - * fresh from the config file on the next call to get_shared_repository(). - */ -void set_shared_repository(int value); -int get_shared_repository(void); -void reset_shared_repository(void); - extern int is_bare_repository_cfg; int is_bare_repository(void); extern char *git_work_tree_cfg; |
