aboutsummaryrefslogtreecommitdiff
path: root/environment.h
diff options
context:
space:
mode:
Diffstat (limited to 'environment.h')
-rw-r--r--environment.h21
1 files changed, 18 insertions, 3 deletions
diff --git a/environment.h b/environment.h
index 51898c99cd..123a71cdc8 100644
--- a/environment.h
+++ b/environment.h
@@ -2,6 +2,7 @@
#define ENVIRONMENT_H
#include "repo-settings.h"
+#include "branch.h"
/* Double-check local_repo_env below if you add to this list. */
#define GIT_DIR_ENVIRONMENT "GIT_DIR"
@@ -42,6 +43,7 @@
#define GIT_OPTIONAL_LOCKS_ENVIRONMENT "GIT_OPTIONAL_LOCKS"
#define GIT_TEXT_DOMAIN_DIR_ENVIRONMENT "GIT_TEXTDOMAINDIR"
#define GIT_ATTR_SOURCE_ENVIRONMENT "GIT_ATTR_SOURCE"
+#define GIT_REFERENCE_BACKEND_ENVIRONMENT "GIT_REFERENCE_BACKEND"
/*
* Environment variable used to propagate the --no-advice global option to the
@@ -84,6 +86,18 @@ extern const char * const local_repo_env[];
struct strvec;
+struct repository;
+struct repo_config_values {
+ /* section "core" config values */
+ char *attributes_file;
+ int apply_sparse_checkout;
+
+ /* section "branch" config values */
+ enum branch_track branch_track;
+};
+
+struct repo_config_values *repo_config_values(struct repository *repo);
+
/*
* Wrapper of getenv() that returns a strdup value. This value is kept
* in argv to be freed later.
@@ -106,6 +120,10 @@ const char *strip_namespace(const char *namespaced_ref);
int git_default_config(const char *, const char *,
const struct config_context *, void *);
+int git_default_core_config(const char *var, const char *value,
+ const struct config_context *ctx, void *cb);
+
+void repo_config_values_init(struct repo_config_values *cfg);
/*
* TODO: All the below state either explicitly or implicitly relies on
@@ -152,17 +170,14 @@ extern int assume_unchanged;
extern int warn_on_object_refname_ambiguity;
extern char *apply_default_whitespace;
extern char *apply_default_ignorewhitespace;
-extern char *git_attributes_file;
extern int zlib_compression_level;
extern int pack_compression_level;
extern unsigned long pack_size_limit_cfg;
-extern int max_allowed_tree_depth;
extern int precomposed_unicode;
extern int protect_hfs;
extern int protect_ntfs;
-extern int core_apply_sparse_checkout;
extern int core_sparse_checkout_cone;
extern int sparse_expect_files_outside_of_patterns;