aboutsummaryrefslogtreecommitdiff
path: root/environment.h
diff options
context:
space:
mode:
authorAyush Chandekar <ayu.chandekar@gmail.com>2025-07-04 19:42:34 +0530
committerJunio C Hamano <gitster@pobox.com>2025-07-07 08:31:13 -0700
commit44e300a97480ef272a596e02b912b72528043193 (patch)
tree90837873d8d44102fff723593bb0f2437d7702af /environment.h
parentcf6f63ea6bf35173e02e18bdc6a4ba41288acff9 (diff)
downloadgit-44e300a97480ef272a596e02b912b72528043193.tar.xz
repository: move 'repository_format_precious_objects' to repo scope
The 'extensions.preciousObjects' setting when set true, prevents operations that might drop objects from the object storage. This setting is populated in the global variable 'repository_format_precious_objects'. Move this global variable to repo scope by adding it to 'struct repository and also refactor all the occurences accordingly. This change is part of an ongoing effort to eliminate global variables, improve modularity and help libify the codebase. Mentored-by: Christian Couder <christian.couder@gmail.com> Mentored-by: Ghanshyam Thakkar <shyamthakkar001@gmail.com> Signed-off-by: Ayush Chandekar <ayu.chandekar@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'environment.h')
-rw-r--r--environment.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/environment.h b/environment.h
index 9a3d05d414..3d806ced6e 100644
--- a/environment.h
+++ b/environment.h
@@ -189,8 +189,6 @@ extern enum object_creation_mode object_creation_mode;
extern int grafts_keep_true_parents;
-extern int repository_format_precious_objects;
-
const char *get_log_output_encoding(void);
const char *get_commit_output_encoding(void);